diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-08-26 23:02:13 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-08-26 23:02:13 +0200 |
commit | 4c4a018caba30a58c3549924b8521074bbe5adad (patch) | |
tree | 82ec302de84097d7626a5c4e0e1e19a0b9188134 /src/tty-ask-password-agent | |
parent | bb2aee7d114841d1c095121f0ac6b3e9bc0342dc (diff) | |
download | systemd-4c4a018caba30a58c3549924b8521074bbe5adad.tar.gz |
tty-ask-pw-agent: make sure "--list" works correctly
Fixes: #16836
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); |