]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
src/: usage(): tfix
authorAlejandro Colomar <alx@kernel.org>
Thu, 25 Jun 2026 20:27:11 +0000 (22:27 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sun, 28 Jun 2026 17:01:24 +0000 (12:01 -0500)
Fixes: 1ed06fee4c8d (2026-02-25; "usermod: Add option to automatically find subordinate IDs")
Fixes: 3f7a72e9677b (2022-08-01; "useradd: add -F option for updating /etc/sub[ig]id for system accounts")
Closes: <https://github.com/shadow-maint/shadow/issues/1662>
Reported-by: Rafael Fontenelle <https://github.com/rffontenelle>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/useradd.c
src/usermod.c

index e6c80bd6f1561d801fb41020a5f7559b3c418d02..d35c7e43fadf6038f90594e74730d91d2f98b1f0 100644 (file)
@@ -909,7 +909,7 @@ static void usage (int status)
        (void) fputs (_("  -e, --expiredate EXPIRE_DATE  expiration date of the new account\n"), usageout);
        (void) fputs (_("  -f, --inactive INACTIVE       password inactivity period of the new account\n"), usageout);
 #ifdef ENABLE_SUBIDS
-       (void) fputs (_("  -F, --add-subids-for-system   add entries to sub[ud]id even when adding a system user\n"), usageout);
+       (void) fputs (_("  -F, --add-subids-for-system   add entries to sub[ug]id even when adding a system user\n"), usageout);
 #endif
        (void) fputs (_("  -g, --gid GROUP               name or ID of the primary group of the new\n"
                        "                                account\n"), usageout);
index 3afe19ea4c0b950f9e023f0f0eb88dc3dfbfa121..d0a6158cf647d9af4cbe2b7a6921f47e4c8d9d00 100644 (file)
@@ -455,7 +455,7 @@ usage (int status)
        (void) fputs (_("  -V, --del-subuids FIRST-LAST  remove range of subordinate uids\n"), usageout);
        (void) fputs (_("  -w, --add-subgids FIRST-LAST  add range of subordinate gids\n"), usageout);
        (void) fputs (_("  -W, --del-subgids FIRST-LAST  remove range of subordinate gids\n"), usageout);
-       (void) fputs (_("  -S, --add-subids              add entries to sub[ud]id based on system defaults\n"), usageout);
+       (void) fputs (_("  -S, --add-subids              add entries to sub[ug]id based on system defaults\n"), usageout);
 #endif                         /* ENABLE_SUBIDS */
 #ifdef WITH_SELINUX
        (void) fputs (_("  -Z, --selinux-user SEUSER     new SELinux user mapping for the user account\n"), usageout);