summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2011-09-16 15:49:18 -0500
committerTheodore Ts'o <tytso@mit.edu>2011-09-16 18:43:04 -0400
commit80f4b3ae490cc86c9eb0d5bac535b48676166a08 (patch)
tree88c8023abf4a4342452bf36ac645f6ea03d48e8c
parent11ba79b3a67c864d23e04d1a2977b173f594bee9 (diff)
downloade2fsprogs-80f4b3ae490cc86c9eb0d5bac535b48676166a08.tar.gz
fsck: fix -C option parsing
The i++; statement is unreachable; fix same as commit f1c2eaac535bd9172a35ce39b6d8f392321f274d in util-linux Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--misc/fsck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/fsck.c b/misc/fsck.c
index fe9426e0..93452333 100644
--- a/misc/fsck.c
+++ b/misc/fsck.c
@@ -1179,8 +1179,8 @@ static void PRS(int argc, char *argv[])
if (progress_fd < 0)
progress_fd = 0;
else {
+ ++i;
goto next_arg;
- i++;
}
}
break;