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.
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 <tytso@valinux.com>
+
+ * 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 <tytso@valinux.com>
* 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 @@
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 @@
else
fprintf(stderr, "Couldn't find matching filesystem: %s\n",
spec);
- exit(1);
+ exit(EXIT_ERROR);
}
/*
@@ -839,7 +839,7 @@
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 @@
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 @@
fprintf(stderr,
_("%s: too many arguments\n"),
progname);
- exit(1);
+ exit(EXIT_ERROR);
}
args[num_args++] = string_copy(options);
opt = 0;