Whamcloud - gitweb
fsck: Don't complain about an old-style fstab if the fstab is empty
authorTheodore Ts'o <tytso@mit.edu>
Wed, 27 Feb 2008 19:19:18 +0000 (14:19 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Feb 2008 19:19:18 +0000 (14:19 -0500)
Addresses-Debian-Bug: 468176

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/fsck.c

index 24c095a..db572b1 100644 (file)
@@ -364,7 +364,7 @@ static void load_fs_info(const char *filename)
        
        fclose(f);
        
-       if (old_fstab) {
+       if (old_fstab && filesys_info) {
                fputs(_("\007\007\007"
                "WARNING: Your /etc/fstab does not contain the fsck passno\n"
                "       field.  I will kludge around things for you, but you\n"