]> 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)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Nov 2023 09:43:55 +0000 (10:43 +0100)
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 74bdf38a424f2795fc785d0e522887c1857f62ca..a8a76f38859b69980f2e4f8465c3351cb71e7725 100644 (file)
@@ -138,10 +138,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;
@@ -1301,6 +1297,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. */