From 15472658599eb29c522107377a9797c6322b93c3 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 27 Feb 2008 14:19:18 -0500 Subject: [PATCH] fsck: Don't complain about an old-style fstab if the fstab is empty Addresses-Debian-Bug: 468176 Signed-off-by: "Theodore Ts'o" --- misc/fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/fsck.c b/misc/fsck.c index 24c095a..db572b1 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" -- 1.8.3.1