diff options
author | Theodore Ts'o <tytso@mit.edu> | 2002-09-24 00:13:19 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2002-09-24 00:13:19 -0400 |
commit | 84bd550148aad62bd004d7398bf50a32a742e5cc (patch) | |
tree | ad0961047a7ab0d7c7a2ed0d7ec65c86b8a79b4e /misc/fsck.c | |
parent | d25f8cf6463d50c870de71cb5a4995bf3fe1dfea (diff) | |
download | e2fsprogs-84bd550148aad62bd004d7398bf50a32a742e5cc.tar.gz |
fsck.c: If the bone-headed user enters the filename twice, the
-R option which skips the root filesystem will skip all of
them. (Addresses Debian bug #159423). Note! This is not
a precedent for dealing intelligently with any other kind
of doubled entry in /etc/fstab!
Diffstat (limited to 'misc/fsck.c')
-rw-r--r-- | misc/fsck.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/fsck.c b/misc/fsck.c index 19578a88..e4c19a33 100644 --- a/misc/fsck.c +++ b/misc/fsck.c @@ -925,6 +925,14 @@ static int check_all(NOARGS) fs->flags |= FLAG_DONE; } } + /* + * This is for the bone-headed user who enters the root + * filesystem twice. Skip root will skep all root entries. + */ + if (skip_root) + for (fs = filesys_info; fs; fs = fs->next) + if (!strcmp(fs->mountpt, "/")) + fs->flags |= FLAG_DONE; while (not_done_yet) { not_done_yet = 0; |