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.
This commit is contained in:
Theodore Ts'o 2001-05-21 01:39:02 +00:00
parent 20562a48a5
commit 07025aea9b
2 changed files with 11 additions and 5 deletions

View File

@ -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,

View File

@ -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;