From 07025aea9b4879e7771f94c8e1e6551023d4bf4f Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 21 May 2001 01:39:02 +0000 Subject: [PATCH] ChangeLog, fsck.c: fsck.c: Make sure all exit status codes returned by fsck are consistent with the error codes documented in the fsck man page. --- misc/ChangeLog | 6 ++++++ misc/fsck.c | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/misc/ChangeLog b/misc/ChangeLog index 9e2905d..c66d2fb 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,9 @@ +2001-05-20 Theodore Tso + + * fsck.c: Make sure all exit status codes returned by fsck are + consistent with the error codes documented in the fsck man + page. + 2001-05-14 Theodore Tso * badblocks.c, chattr.c, dumpe2fs.c, e2image.c, findsuper.c, diff --git a/misc/fsck.c b/misc/fsck.c index 33b4028..e06d719 100644 --- a/misc/fsck.c +++ b/misc/fsck.c @@ -237,7 +237,7 @@ static char *interpret_device(char *spec) fprintf(stderr, "Couldn't open /proc/partitions: %s\n", strerror(errno)); fprintf(stderr, "Is /proc mounted?\n"); - exit(1); + exit(EXIT_ERROR); } /* * Check to see if this is because we're not running as root @@ -248,7 +248,7 @@ static char *interpret_device(char *spec) else fprintf(stderr, "Couldn't find matching filesystem: %s\n", spec); - exit(1); + exit(EXIT_ERROR); } /* @@ -839,7 +839,7 @@ static void PRS(int argc, char *argv[]) if (num_devices >= MAX_DEVICES) { fprintf(stderr, _("%s: too many devices\n"), progname); - exit(1); + exit(EXIT_ERROR); } devices[num_devices++] = interpret_device(string_copy(arg)); @@ -849,7 +849,7 @@ static void PRS(int argc, char *argv[]) if (num_args >= MAX_ARGS) { fprintf(stderr, _("%s: too many arguments\n"), progname); - exit(1); + exit(EXIT_ERROR); } args[num_args++] = string_copy(arg); continue; @@ -918,7 +918,7 @@ static void PRS(int argc, char *argv[]) fprintf(stderr, _("%s: too many arguments\n"), progname); - exit(1); + exit(EXIT_ERROR); } args[num_args++] = string_copy(options); opt = 0; -- 1.8.3.1