]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chsh: extend usage message
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 4 Jan 2026 14:26:19 +0000 (15:26 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 4 Jan 2026 14:26:53 +0000 (15:26 +0100)
The chsh utility accepts UIDs like chfn does, too.

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

index 0723367389cda93122df556701922bbe84ab4c8f..309f9d59c1d399cd20553b5393432e94c174ab07 100644 (file)
@@ -67,7 +67,7 @@ static void __attribute__((__noreturn__)) usage(void)
 {
        FILE *fp = stdout;
        fputs(USAGE_HEADER, fp);
-       fprintf(fp, _(" %s [options] [<username>]\n"), program_invocation_short_name);
+       fprintf(fp, _(" %s [options] [<username>|<UID>]\n"), program_invocation_short_name);
 
        fputs(USAGE_SEPARATOR, fp);
        fputs(_("Change your login shell.\n"), fp);