From 45a7c6b5d373170eda2fa7bdb8fa81b49865f316 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 6 Nov 2013 17:33:44 +0100 Subject: inhibit: don't return error code on --help --- src/login/inhibit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/login/inhibit.c b/src/login/inhibit.c index 3ab86ac90c..404881be6e 100644 --- a/src/login/inhibit.c +++ b/src/login/inhibit.c @@ -27,7 +27,6 @@ #include #include "sd-bus.h" - #include "bus-util.h" #include "bus-error.h" #include "util.h" @@ -228,8 +227,10 @@ int main(int argc, char *argv[]) { log_open(); r = parse_argv(argc, argv); - if (r <= 0) + if (r < 0) return EXIT_FAILURE; + if (r == 0) + return EXIT_SUCCESS; r = sd_bus_open_system(&bus); if (r < 0) { -- cgit v1.2.3-54-g00ecf