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:
parent
9c6f3de60f
commit
d1bba731c6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue