]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsck: fix -C parsing
authorKarel Zak <kzak@redhat.com>
Thu, 17 Feb 2011 10:56:51 +0000 (11:56 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Apr 2011 12:29:53 +0000 (14:29 +0200)
Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
fsck/fsck.c

index 4d8ed86b73a8b77be7f3b49e9ad53b97a3761c9d..59345c999d60968e867013f22d212bffb4c58166 100644 (file)
@@ -1320,8 +1320,8 @@ static void PRS(int argc, char *argv[])
                                        if (progress_fd < 0)
                                                progress_fd = 0;
                                        else {
+                                               ++i;
                                                goto next_arg;
-                                               i++;
                                        }
                                }
                                break;