mirror of https://github.com/vitalif/e2fsprogs
util.c (parse_ulong): Fix typo which cases parse_ulong to
coredump if the err variable is filled in (for example, if the -b or -s options are passed to the debugfs's command-line invocation).bitmap-optimize
parent
116db1b513
commit
e5b3b27966
|
@ -1,3 +1,10 @@
|
||||||
|
2002-04-01 <tytso@snap.thunk.org>
|
||||||
|
|
||||||
|
* util.c (parse_ulong): Fix typo which cases parse_ulong to
|
||||||
|
coredump if the err variable is filled in (for example, if
|
||||||
|
the -b or -s options are passed to the debugfs's
|
||||||
|
command-line invocation).
|
||||||
|
|
||||||
2002-03-11 Theodore Tso <tytso@mit.edu>
|
2002-03-11 Theodore Tso <tytso@mit.edu>
|
||||||
|
|
||||||
* ls.c (list_dir_proc): Fix bug: ls -l fails to print the file
|
* ls.c (list_dir_proc): Fix bug: ls -l fails to print the file
|
||||||
|
|
|
@ -146,12 +146,12 @@ unsigned long parse_ulong(const char *str, const char *cmd,
|
||||||
|
|
||||||
ret = strtoul(str, &tmp, 0);
|
ret = strtoul(str, &tmp, 0);
|
||||||
if (*tmp == 0) {
|
if (*tmp == 0) {
|
||||||
if (*err)
|
if (err)
|
||||||
*err = 0;
|
*err = 0;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
com_err(cmd, 0, "Bad %s - %s", descr, str);
|
com_err(cmd, 0, "Bad %s - %s", descr, str);
|
||||||
if (*err)
|
if (err)
|
||||||
*err = 1;
|
*err = 1;
|
||||||
else
|
else
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in New Issue