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/fsck.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/fsck.c')
-rw-r--r-- | disk-utils/fsck.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/disk-utils/fsck.c b/disk-utils/fsck.c index cbe179ba6..918103ac0 100644 --- a/disk-utils/fsck.c +++ b/disk-utils/fsck.c @@ -54,8 +54,6 @@ #include "c.h" #include "fileutils.h" #include "monotonic.h" - -#define STRTOXX_EXIT_CODE FSCK_EX_ERROR #include "strutils.h" #define XALLOC_EXIT_CODE FSCK_EX_ERROR @@ -1612,6 +1610,7 @@ int main(int argc, char *argv[]) textdomain(PACKAGE); atexit(close_stdout); + strutils_set_exitcode(FSCK_EX_USAGE); mnt_init_debug(0); /* init libmount debug mask */ mntcache = mnt_new_cache(); /* no fatal error if failed */ |