summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-08-15 18:39:51 -0400
committerTheodore Ts'o <tytso@mit.edu>2001-08-15 18:39:51 -0400
commit88f8af61a48bafe35fdbfcb0d19f4a83f0ce3d66 (patch)
treefbb5e8c4c4063ae2488ce2ca48a0abf9eedc5bb7
parentf3561ed5195e06b2721653acd81a3a035a702f8b (diff)
downloade2fsprogs-88f8af61a48bafe35fdbfcb0d19f4a83f0ce3d66.tar.gz
fsck.c (check_all): Don't bother to interpret a device where the
pass number is zero. (Addresses Debian bug #106696).
-rw-r--r--misc/ChangeLog3
-rw-r--r--misc/fsck.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog
index eb454875..fa078992 100644
--- a/misc/ChangeLog
+++ b/misc/ChangeLog
@@ -1,5 +1,8 @@
2001-08-15 Theodore Tso <tytso@valinux.com>
+ * fsck.c (check_all): Don't bother to interpret a device where the
+ pass number is zero. (Addresses Debian bug #106696).
+
* mke2fs.c (PRS): Handle -O and -s options in line in the getopt
loop, so that -s and -O handling are a bit more intuitive.
(Not that they should be mixed anyway; -s is deprecated.)
diff --git a/misc/fsck.c b/misc/fsck.c
index 6eefd550..c469ad71 100644
--- a/misc/fsck.c
+++ b/misc/fsck.c
@@ -874,7 +874,8 @@ static int check_all(NOARGS)
for (fs = filesys_info; fs; fs = fs->next) {
if (ignore(fs))
fs->flags |= FLAG_DONE;
- fs->device = interpret_device(fs->device);
+ else
+ fs->device = interpret_device(fs->device);
}
/*