summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-06 17:33:44 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-06 17:33:44 +0100
commit45a7c6b5d373170eda2fa7bdb8fa81b49865f316 (patch)
tree99642bea87f98189d37a51df87479cca25aa8f63 /src
parentd75edbd619b87337717d80496f15e59cbbd6c793 (diff)
inhibit: don't return error code on --help
Diffstat (limited to 'src')
-rw-r--r--src/login/inhibit.c5
1 files changed, 3 insertions, 2 deletions
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 <fcntl.h>
#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) {