chiark / gitweb /
core: make systemd.confirm_spawn=1 actually work
[elogind.git] / src / tty-ask-password-agent / tty-ask-password-agent.c
index 7f537c27408a5692573a756c0a6e24c850859be6..0dec0629c0012daa327549ad4b7192bfc707b9bd 100644 (file)
@@ -368,7 +368,7 @@ static int parse_password(const char *filename, char **wall) {
                         char *password;
 
                         if (arg_console)
-                                if ((tty_fd = acquire_terminal("/dev/console", false, false, false)) < 0) {
+                                if ((tty_fd = acquire_terminal("/dev/console", false, false, false, (usec_t) -1)) < 0) {
                                         r = tty_fd;
                                         goto finish;
                                 }