From 45d674621918664c8736f94f862e86bddf4c3fd4 Mon Sep 17 00:00:00 2001 From: Iker Pedrosa Date: Wed, 4 May 2022 09:33:59 +0200 Subject: [PATCH] src: correct "badname" option Change "badnames" to "badname" as this is the accepted option name. Signed-off-by: Iker Pedrosa --- src/newusers.c | 4 ++-- src/pwck.c | 4 ++-- src/useradd.c | 4 ++-- src/usermod.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/newusers.c b/src/newusers.c index 8c882100..4c6546e8 100644 --- a/src/newusers.c +++ b/src/newusers.c @@ -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 */ diff --git a/src/pwck.c b/src/pwck.c index 058a240e..eaa4163f 100644 --- a/src/pwck.c +++ b/src/pwck.c @@ -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'}, diff --git a/src/useradd.c b/src/useradd.c index 4c71c38a..9e99892b 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -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'}, diff --git a/src/usermod.c b/src/usermod.c index 459d8acf..e90b7057 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -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);