]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Fix badname option to be singular just like useradd.
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>
Fri, 13 Oct 2023 00:44:11 +0000 (01:44 +0100)
committerSerge Hallyn <serge@hallyn.com>
Mon, 16 Oct 2023 17:45:21 +0000 (12:45 -0500)
Badnames still accepted, note that previously usage already stated
singular form, whilst manpage and real one was plural only.

Fixes: 45d6746219 ("src: correct "badname" option")
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
man/po/de.po
src/usermod.c

index 856b95f3ed71bf951b58b6e9c2ba499a34d16b28..7a56248d2bbaee2142035a4073f8d2de3ab3becc 100644 (file)
@@ -458,8 +458,8 @@ msgid "Add the user to the supplementary group(s). Use only with the <option>-G<
 msgstr "verleiht dem Benutzer zusätzliche, ergänzende Gruppenzugehörigkeiten. Kann nur zusammen mit der Option <option>-G</option> verwendet werden."
 
 #: usermod.8.xml:112(term)
-msgid "<option>-b</option>, <option>--badnames</option>"
-msgstr "<option>-b</option>, <option>--badnames</option>"
+msgid "<option>-b</option>, <option>--badname</option>"
+msgstr "<option>-b</option>, <option>--badname</option>"
 
 #: usermod.8.xml:116(para) useradd.8.xml:135(para) pwck.8.xml:190(para) newusers.8.xml:276(para)
 msgid "Allow names that do not conform to standards."
index 5046f9ebeff8c0e9bdb0015c1a994c83e7b68f7d..7d9e661dbf122df2a287c9b11584ef160bc47723 100644 (file)
@@ -980,6 +980,7 @@ static void process_flags (int argc, char **argv)
                int c;
                static struct option long_options[] = {
                        {"append",       no_argument,       NULL, 'a'},
+                       {"badname",      no_argument,       NULL, 'b'},
                        {"badnames",     no_argument,       NULL, 'b'},
                        {"comment",      required_argument, NULL, 'c'},
                        {"home",         required_argument, NULL, 'd'},