From 59bd932af2c8f09c9cf509a405e217a749023033 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 28 Jan 2025 02:09:52 +0100 Subject: [PATCH] tty-ask-password-agent: assert that ask_on_consoles() is called without arg_device --- src/tty-ask-password-agent/tty-ask-password-agent.c | 1 + 1 file changed, 1 insertion(+) 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 1c1b95bef3c..26c135a45f3 100644 --- a/src/tty-ask-password-agent/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent/tty-ask-password-agent.c @@ -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); -- 2.47.3