summaryrefslogtreecommitdiff
path: root/src/login/inhibit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/inhibit.c')
-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) {