]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: Add UID to usage message
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 4 Jan 2026 18:08:01 +0000 (19:08 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 4 Jan 2026 18:08:01 +0000 (19:08 +0100)
The UID can be supplied instead of a username.

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

index abf7c920815c6b48ffc20f11605fa3199c17639b..8815cf1703d2c2ec24f67997616c516a8d965d2c 100644 (file)
@@ -1282,7 +1282,7 @@ static void init_remote_info(struct login_context *cxt, char *remotehost)
 static void __attribute__((__noreturn__)) usage(void)
 {
        fputs(USAGE_HEADER, stdout);
-       printf(_(" %s [-p] [-s <shell>] [-h <host>] [-H] [[-f] <username>]\n"), program_invocation_short_name);
+       printf(_(" %s [-p] [-s <shell>] [-h <host>] [-H] [[-f] <username|UID>]\n"), program_invocation_short_name);
        fputs(USAGE_SEPARATOR, stdout);
        fputs(_("Begin a session on the system.\n"), stdout);