diff options
author | Karel Zak | 2017-06-26 13:47:04 +0200 |
---|---|---|
committer | Karel Zak | 2017-06-26 13:47:04 +0200 |
commit | dfdb1ca8186cfc84ad95d5e356334ce8633a28f7 (patch) | |
tree | 37b568d27fa12194ec63f8122901fc8b2fd7bf1d /disk-utils/mkfs.cramfs.c | |
parent | Merge branch 'usage-part1' of https://github.com/rudimeier/util-linux (diff) | |
parent | misc: fix optutils.h related exit codes (diff) | |
download | kernel-qcow2-util-linux-dfdb1ca8186cfc84ad95d5e356334ce8633a28f7.tar.gz kernel-qcow2-util-linux-dfdb1ca8186cfc84ad95d5e356334ce8633a28f7.tar.xz kernel-qcow2-util-linux-dfdb1ca8186cfc84ad95d5e356334ce8633a28f7.zip |
Merge branch 'fix-exit-codes' of https://github.com/rudimeier/util-linux
* 'fix-exit-codes' of https://github.com/rudimeier/util-linux:
misc: fix optutils.h related exit codes
misc: fix xalloc.h related exit codes
misc: fix more strutils related exit codes
lib: fix strutils.h, remove STRTOXX_EXIT_CODE
misc: fix some broken exit codes
Diffstat (limited to 'disk-utils/mkfs.cramfs.c')
-rw-r--r-- | disk-utils/mkfs.cramfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c index 87b378c81..74664a811 100644 --- a/disk-utils/mkfs.cramfs.c +++ b/disk-utils/mkfs.cramfs.c @@ -726,6 +726,7 @@ int main(int argc, char **argv) exit(MKFS_EX_OK); } } + strutils_set_exitcode(MKFS_EX_USAGE); /* command line options */ while ((c = getopt(argc, argv, "hb:Ee:i:n:N:psVvz")) != EOF) { @@ -922,5 +923,5 @@ int main(int argc, char **argv) (warn_namelen|warn_skip|warn_size|warn_uid|warn_gid|warn_dev)) exit(MKFS_EX_ERROR); - return EXIT_SUCCESS; + return MKFS_EX_OK; } |