tty-ask-password-agent: assert that ask_on_consoles() is called without arg_device

This commit is contained in:
Mike Yuan
2025-01-28 02:10:29 +01:00
parent 5ff144515e
commit 59bd932af2
@@ -666,6 +666,7 @@ static int ask_on_consoles(char *argv[]) {
_cleanup_set_free_ Set *pids = NULL;
int r;
assert(!arg_device);
assert(argv);
r = get_kernel_consoles(&consoles);