diff options
Diffstat (limited to 'src/tty-ask-password-agent')
-rw-r--r-- | src/tty-ask-password-agent/tty-ask-password-agent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c b/src/tty-ask-password-agent/tty-ask-password-agent.c index 4371da4785..49b30e14e0 100644 --- a/src/tty-ask-password-agent/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent/tty-ask-password-agent.c @@ -47,7 +47,7 @@ static enum { ACTION_LIST, ACTION_QUERY, ACTION_WATCH, - ACTION_WALL + ACTION_WALL, } arg_action = ACTION_QUERY; static bool arg_plymouth = false; @@ -713,7 +713,7 @@ static int run(int argc, char *argv[]) { (void) release_terminal(); } - return process_and_watch_password_files(arg_action != ACTION_QUERY); + return process_and_watch_password_files(!IN_SET(arg_action, ACTION_QUERY, ACTION_LIST)); } DEFINE_MAIN_FUNCTION(run); |