From c96e511a0c020a309d4fd3f8cac9ebc1a52c2ff4 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 8 May 2000 14:47:15 +0000 Subject: [PATCH] ChangeLog, fsck.c: fsck.c (interpret_device): Add better error messages if a UUID= or LABEL= specification is given. --- misc/ChangeLog | 3 +++ misc/fsck.c | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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 + * 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 @@ static char *interpret_device(char *spec) 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); } /* -- 1.8.3.1