From: nekral-guest Date: Thu, 14 Jul 2011 13:29:54 +0000 (+0000) Subject: * src/usermod.c (process_flags): Do not display the usage in case X-Git-Tag: 4.1.5~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82b92af08606a862467c14df21eb069316f30b44;p=shadow * src/usermod.c (process_flags): Do not display the usage in case of an invalid -f value (similar to -e). --- diff --git a/ChangeLog b/ChangeLog index 38b0ed30..d0433ae8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,8 @@ renamed (as for the homedir) * src/usermod.c (new_pwent): Document that pw_locate will not fail because getpwnam returned successfully. + * src/usermod.c (process_flags): Do not display the usage in case + of an invalid -f value (similar to -e). 2011-07-08 Nicolas François diff --git a/src/usermod.c b/src/usermod.c index 1f3ebb76..9525ade3 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -944,7 +944,7 @@ static void process_flags (int argc, char **argv) fprintf (stderr, _("%s: invalid numeric argument '%s'\n"), Prog, optarg); - usage (E_USAGE); + exit (E_BAD_ARG); } fflg = true; break;