diff options
author | Ruediger Meier | 2017-06-22 22:16:14 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-22 22:40:21 +0200 |
commit | 0b2b32e8a7a6aed1e3ff1cfc3f63cf33361a67b8 (patch) | |
tree | 7a8b7e4642ff4e9d70262da8592a6ac7a8f7cee3 /disk-utils/fsck.cramfs.c | |
parent | lib: fix strutils.h, remove STRTOXX_EXIT_CODE (diff) | |
download | kernel-qcow2-util-linux-0b2b32e8a7a6aed1e3ff1cfc3f63cf33361a67b8.tar.gz kernel-qcow2-util-linux-0b2b32e8a7a6aed1e3ff1cfc3f63cf33361a67b8.tar.xz kernel-qcow2-util-linux-0b2b32e8a7a6aed1e3ff1cfc3f63cf33361a67b8.zip |
misc: fix more strutils related exit codes
Found by grep:
grep -l "\bEXIT_\|exit *( *[0-9][0-9] *)\|strutils\.h" $(grep -L \
strutils_set_exitcode $(git grep -l "_EX_\|FINDFS_\|BLKID_EXIT\|EX_USAGE" -- "*.c"))
The Command shows also some false positives (fstrim.c,
context_mount.c, ...)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'disk-utils/fsck.cramfs.c')
-rw-r--r-- | disk-utils/fsck.cramfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c index 952f15332..1dba95eb5 100644 --- a/disk-utils/fsck.cramfs.c +++ b/disk-utils/fsck.cramfs.c @@ -660,6 +660,8 @@ int main(int argc, char **argv) textdomain(PACKAGE); atexit(close_stdout); + strutils_set_exitcode(FSCK_EX_USAGE); + /* command line options */ while ((c = getopt_long(argc, argv, "ayvVhb:", longopts, NULL)) != EOF) switch (c) { |