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 <kzak@redhat.com>
This commit is contained in:
Stanislav Brabec 2015-03-24 21:01:10 +01:00 committed by Karel Zak
parent 9c6f3de60f
commit d1bba731c6
1 changed files with 1 additions and 1 deletions

View File

@ -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 <fd> */
progress_fd = string_to_int(argv[i]);
progress_fd = string_to_int(argv[i+1]);
if (progress_fd < 0)
progress_fd = 0;
else {