ChangeLog, fsck.c:
fsck.c (interpret_device): Add better error messages if a UUID= or
LABEL= specification is given.
diff --git a/misc/ChangeLog b/misc/ChangeLog
index 2debf22..f9fc009 100644
--- a/misc/ChangeLog
+++ b/misc/ChangeLog
@@ -1,5 +1,8 @@
2000-05-08 Theodore Ts'o <tytso@valinux.com>
+ * fsck.c (interpret_device): Add better error messages if a UUID=
+ or LABEL= specification is given.
+
* mke2fs.c (main): We forcibly turn off the filetype feature if
the OS is the hurd, since the hurd doesn't support it.
(And since the hurd allows the transmogrification of files
diff --git a/misc/fsck.c b/misc/fsck.c
index 1e76257..c9ed769 100644
--- a/misc/fsck.c
+++ b/misc/fsck.c
@@ -274,7 +274,16 @@
fprintf(stderr, "Is /proc mounted?\n");
exit(1);
}
- return spec;
+ /*
+ * Check to see if this is because we're not running as root
+ */
+ if (geteuid())
+ fprintf(stderr, "Must be root to scan for matching "
+ "filesystems: %s\n", spec);
+ else
+ fprintf(stderr, "Couldn't find matching filesystem: %s\n",
+ spec);
+ exit(1);
}
/*