From: Theodore Ts'o Date: Mon, 14 Mar 2016 17:54:41 +0000 (-0400) Subject: debugfs: fix a bug in string_to_time() which misparsed @NNNNNNN inputs X-Git-Tag: v1.43-WIP-2016-03-15~15 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6743215bffbd94b5b7bdc54f31741356e9fa3b25;p=tools%2Fe2fsprogs.git debugfs: fix a bug in string_to_time() which misparsed @NNNNNNN inputs Thanks to David Turner for reporting this bug. Signed-off-by: Theodore Ts'o --- diff --git a/debugfs/util.c b/debugfs/util.c index 770e7e1..bd5de79 100644 --- a/debugfs/util.c +++ b/debugfs/util.c @@ -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;