From 0b2b32e8a7a6aed1e3ff1cfc3f63cf33361a67b8 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Thu, 22 Jun 2017 22:16:14 +0200 Subject: 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 --- sys-utils/flock.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys-utils/flock.c') diff --git a/sys-utils/flock.c b/sys-utils/flock.c index 50194bdb9..003a12618 100644 --- a/sys-utils/flock.c +++ b/sys-utils/flock.c @@ -170,6 +170,8 @@ int main(int argc, char *argv[]) textdomain(PACKAGE); atexit(close_stdout); + strutils_set_exitcode(EX_USAGE); + if (argc < 2) usage(EX_USAGE); -- cgit v1.2.3-55-g7522