summaryrefslogtreecommitdiff
path: root/src/login/inhibit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-10 19:24:48 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-10 19:25:29 +0100
commitd9130355ee0530117518ff24354bdd552d030238 (patch)
tree1e40704954d7b14fafa4d672c1566b7959d9c5ee /src/login/inhibit.c
parentca5447c082347d611c52b22a0115d4efe2d2e0e8 (diff)
busctl: add "tree" command to explore object trees
Diffstat (limited to 'src/login/inhibit.c')
-rw-r--r--src/login/inhibit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/inhibit.c b/src/login/inhibit.c
index 122c69d7a1..8c9d1165d2 100644
--- a/src/login/inhibit.c
+++ b/src/login/inhibit.c
@@ -208,7 +208,7 @@ static int parse_argv(int argc, char *argv[]) {
assert_not_reached("Unhandled option");
}
- if (arg_action == ACTION_INHIBIT && argc == 1)
+ if (arg_action == ACTION_INHIBIT && optind == argc)
arg_action = ACTION_LIST;
else if (arg_action == ACTION_INHIBIT && optind >= argc) {