From 0b4d75fae55b4a5ff8f65df8551c56cf1eeb9b08 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Thu, 12 Nov 2020 23:58:59 +0000 Subject: [PATCH] login: move timeout from global to local scope Signed-off-by: Sami Kerola --- login-utils/login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login-utils/login.c b/login-utils/login.c index 0bf64f42cb..b15b0ee18e 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -151,7 +151,6 @@ struct login_context { * This bounds the time given to login. Not a define, so it can * be patched on machines where it's too small. */ -static unsigned int timeout = LOGIN_TIMEOUT; static int child_pid = 0; static volatile sig_atomic_t got_sig = 0; static char *timeout_msg; @@ -1260,6 +1259,7 @@ int main(int argc, char **argv) char *buff; int childArgc = 0; int retcode; + unsigned int timeout; struct sigaction act; struct passwd *pwd; static const int wanted_fds[] = { -- 2.47.3