]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tty-ask-password-agent: assert that ask_on_consoles() is called without arg_device
authorMike Yuan <me@yhndnzj.com>
Tue, 28 Jan 2025 01:09:52 +0000 (02:09 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 28 Jan 2025 01:10:29 +0000 (02:10 +0100)
src/tty-ask-password-agent/tty-ask-password-agent.c

index 1c1b95bef3cf813721036ac19e9a2353e05a7593..26c135a45f3f8ab90fffb33cb9714362efc6777e 100644 (file)
@@ -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);