mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-27 12:04:43 +08:00
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:
parent
20562a48a5
commit
07025aea9b
@ -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,
|
||||
|
10
misc/fsck.c
10
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;
|
||||
|
Loading…
Reference in New Issue
Block a user