mirror of https://github.com/vitalif/e2fsprogs
debugfs: fix a bug in string_to_time() which misparsed @NNNNNNN inputs
Thanks to David Turner <novalis@novalis.org> for reporting this bug. Signed-off-by: Theodore Ts'o <tytso@mit.edu>debian
parent
cffde0375c
commit
6743215bff
|
@ -232,7 +232,7 @@ extern __s64 string_to_time(const char *arg)
|
|||
/* interpret it as an integer */
|
||||
arg++;
|
||||
fallback:
|
||||
ret = strtoll(arg+1, &tmp, 0);
|
||||
ret = strtoll(arg, &tmp, 0);
|
||||
if (*tmp)
|
||||
return -1;
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue