mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
inhibit: don't return error code on --help
This commit is contained in:
+3
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user