diff options
author | Theodore Ts'o <tytso@mit.edu> | 2000-05-08 14:47:15 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2000-05-08 14:47:15 +0000 |
commit | c96e511a0c020a309d4fd3f8cac9ebc1a52c2ff4 (patch) | |
tree | a6cdd57b31c6eafd116b98f02553cb811d6ca434 /misc | |
parent | 4ea0a1109d761e9caaa53f6fa9e036321826c5fa (diff) | |
download | e2fsprogs-c96e511a0c020a309d4fd3f8cac9ebc1a52c2ff4.tar.gz |
ChangeLog, fsck.c:
fsck.c (interpret_device): Add better error messages if a UUID= or
LABEL= specification is given.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ChangeLog | 3 | ||||
-rw-r--r-- | misc/fsck.c | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog index 2debf220..f9fc0095 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 1e762573..c9ed7694 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); } /* |