From: Mike Yuan Date: Tue, 28 Jan 2025 01:09:52 +0000 (+0100) Subject: tty-ask-password-agent: assert that ask_on_consoles() is called without arg_device X-Git-Tag: v258-rc1~1467^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59bd932af2c8f09c9cf509a405e217a749023033;p=thirdparty%2Fsystemd.git tty-ask-password-agent: assert that ask_on_consoles() is called without arg_device --- 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);