]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
src: correct "badname" option
authorIker Pedrosa <ipedrosa@redhat.com>
Wed, 4 May 2022 07:33:59 +0000 (09:33 +0200)
committerSerge Hallyn <serge@hallyn.com>
Fri, 6 May 2022 15:13:51 +0000 (10:13 -0500)
Change "badnames" to "badname" as this is the accepted option name.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
src/newusers.c
src/pwck.c
src/useradd.c
src/usermod.c

index 8c882100aebc0fb713d62f9663c93b9f4a763ec1..4c6546e8e20718de5eb67d6235a9ee48dade074a 100644 (file)
@@ -116,7 +116,7 @@ static void usage (int status)
                          "\n"
                          "Options:\n"),
                        Prog);
-       (void) fputs (_("  -b, --badnames                allow bad names\n"), usageout);
+       (void) fputs (_("  -b, --badname                 allow bad names\n"), usageout);
 #ifndef USE_PAM
        (void) fprintf (usageout,
                        _("  -c, --crypt-method METHOD     the crypt method (one of %s)\n"),
@@ -615,7 +615,7 @@ static void process_flags (int argc, char **argv)
 #endif                         /* USE_SHA_CRYPT || USE_BCRYPT || USE_YESCRYPT */
 #endif                                 /* !USE_PAM */
        static struct option long_options[] = {
-               {"badnames",     no_argument,       NULL, 'b'},
+               {"badname",      no_argument,       NULL, 'b'},
 #ifndef USE_PAM
                {"crypt-method", required_argument, NULL, 'c'},
 #endif                         /* !USE_PAM */
index 058a240e278e0d1a3439b4a96ea5d3c25bed7c1a..eaa4163f467299090f49d6fb199a929d8424ef5f 100644 (file)
@@ -128,7 +128,7 @@ static /*@noreturn@*/void usage (int status)
                                  "Options:\n"),
                                Prog);
        }
-       (void) fputs (_("  -b, --badnames                allow bad names\n"), usageout);
+       (void) fputs (_("  -b, --badname                 allow bad names\n"), usageout);
        (void) fputs (_("  -h, --help                    display this help message and exit\n"), usageout);
        (void) fputs (_("  -q, --quiet                   report errors only\n"), usageout);
        (void) fputs (_("  -r, --read-only               display errors and warnings\n"
@@ -153,7 +153,7 @@ static void process_flags (int argc, char **argv)
 {
        int c;
        static struct option long_options[] = {
-               {"badnames",  no_argument,       NULL, 'b'},
+               {"badname",   no_argument,       NULL, 'b'},
                {"help",      no_argument,       NULL, 'h'},
                {"quiet",     no_argument,       NULL, 'q'},
                {"read-only", no_argument,       NULL, 'r'},
index 4c71c38a920e8d227e9efdb34c1ba3a0430d638f..9e99892bdf2066fc79dd132772d84fb538db1b16 100644 (file)
@@ -899,7 +899,7 @@ static void usage (int status)
                          "\n"
                          "Options:\n"),
                        Prog, Prog, Prog);
-       (void) fputs (_("      --badnames                do not check for bad names\n"), usageout);
+       (void) fputs (_("      --badname                 do not check for bad names\n"), usageout);
        (void) fputs (_("  -b, --base-dir BASE_DIR       base directory for the home directory of the\n"
                        "                                new account\n"), usageout);
 #ifdef WITH_BTRFS
@@ -1189,7 +1189,7 @@ static void process_flags (int argc, char **argv)
 #ifdef WITH_BTRFS
                        {"btrfs-subvolume-home", no_argument, NULL, 200},
 #endif
-                       {"badnames",       no_argument,       NULL, 201},
+                       {"badname",        no_argument,       NULL, 201},
                        {"comment",        required_argument, NULL, 'c'},
                        {"home-dir",       required_argument, NULL, 'd'},
                        {"defaults",       no_argument,       NULL, 'D'},
index 459d8acf06d4d137af230e60ba937c97d03c2145..e90b70577554f106a40d3162d3431e70f5e25799 100644 (file)
@@ -370,7 +370,7 @@ static /*@noreturn@*/void usage (int status)
        (void) fputs (_("  -a, --append                  append the user to the supplemental GROUPS\n"
                        "                                mentioned by the -G option without removing\n"
                        "                                the user from other groups\n"), usageout);
-       (void) fputs (_("  -b, --badnames                allow bad names\n"), usageout);
+       (void) fputs (_("  -b, --badname                 allow bad names\n"), usageout);
        (void) fputs (_("  -c, --comment COMMENT         new value of the GECOS field\n"), usageout);
        (void) fputs (_("  -d, --home HOME_DIR           new home directory for the user account\n"), usageout);
        (void) fputs (_("  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE\n"), usageout);