]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 24c095a4bab578ece7028ea6bb9114b0a3525482..db572b1e285144a9775b0a5cc9a873d564857451 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"