]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: move comment
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 19 Sep 2023 18:42:03 +0000 (20:42 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 19 Sep 2023 18:48:19 +0000 (20:48 +0200)
In 0b4d75fae55b4a5ff8f65df8551c56cf1eeb9b08 the variable "timeout" has
been moved from global to local scope, but its comment was not.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
login-utils/login.c

index 129f3cfa2e3bc30e5aa99f2b50e19619a54dd54d..8294a522af3394da8883192f2c4759448aaecf5e 100644 (file)
@@ -139,10 +139,6 @@ struct login_context {
                        keep_env:1;     /* login -p */
 };
 
-/*
- * This bounds the time given to login.  Not a define, so it can
- * be patched on machines where it's too small.
- */
 static int child_pid = 0;
 static volatile sig_atomic_t got_sig = 0;
 static char *timeout_msg;
@@ -1334,6 +1330,10 @@ static void initialize(int argc, char **argv, struct login_context *cxt)
                {NULL, 0, NULL, 0}
        };
 
+       /*
+        * This bounds the time given to login.  Not a define, so it can
+        * be patched on machines where it's too small.
+        */
        timeout = (unsigned int)getlogindefs_num("LOGIN_TIMEOUT", LOGIN_TIMEOUT);
 
        /* TRANSLATORS: The standard value for %u is 60. */