* src/usermod.c (process_flags): Do not display the usage in case

of an invalid -f value (similar to -e).
This commit is contained in:
nekral-guest 2011-07-14 13:29:54 +00:00
parent c23e851074
commit 82b92af086
2 changed files with 3 additions and 1 deletions

View File

@ -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 <nicolas.francois@centraliens.net>

View File

@ -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;