* src/usermod.c (process_flags): Indicate that the user name is

invalid, instead of just a 'field'.
This commit is contained in:
nekral-guest 2011-07-14 13:29:59 +00:00
parent 82b92af086
commit d4e630b8cc
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,8 @@
because getpwnam returned successfully.
* src/usermod.c (process_flags): Do not display the usage in case
of an invalid -f value (similar to -e).
* src/usermod.c (process_flags): Indicate that the user name is
invalid, instead of just a 'field'.
2011-07-08 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -971,7 +971,7 @@ static void process_flags (int argc, char **argv)
case 'l':
if (!is_valid_user_name (optarg)) {
fprintf (stderr,
_("%s: invalid field '%s'\n"),
_("%s: invalid user name '%s'\n"),
Prog, optarg);
exit (E_BAD_ARG);
}