From: Theodore Ts'o Date: Wed, 27 Feb 2008 19:19:18 +0000 (-0500) Subject: fsck: Don't complain about an old-style fstab if the fstab is empty X-Git-Tag: v1.40.7~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15472658599eb29c522107377a9797c6322b93c3;p=thirdparty%2Fe2fsprogs.git fsck: Don't complain about an old-style fstab if the fstab is empty Addresses-Debian-Bug: 468176 Signed-off-by: "Theodore Ts'o" --- diff --git a/misc/fsck.c b/misc/fsck.c index 24c095a4b..db572b1e2 100644 --- a/misc/fsck.c +++ b/misc/fsck.c @@ -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"