From: Stanislav Brabec Date: Tue, 24 Mar 2015 20:01:10 +0000 (+0100) Subject: fsck: fix fsck -C {fd} parsing X-Git-Tag: v2.27-rc1~322 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1bba731c6ca1918d03f2a8c144b51f9a8607fda;p=thirdparty%2Futil-linux.git fsck: fix fsck -C {fd} parsing Both fsck(8) and fsck --help documents progress bar redirection as -C {fd} This did not work, and only -C{fd} and "-C {fd}" worked. Signed-off-by: Karel Zak --- diff --git a/disk-utils/fsck.c b/disk-utils/fsck.c index 5842da4085..817be97da4 100644 --- a/disk-utils/fsck.c +++ b/disk-utils/fsck.c @@ -1471,7 +1471,7 @@ static void parse_argv(int argc, char *argv[]) else goto next_arg; } else if (i+1 < argc && *argv[i+1] != '-') { /* -C */ - progress_fd = string_to_int(argv[i]); + progress_fd = string_to_int(argv[i+1]); if (progress_fd < 0) progress_fd = 0; else {