* src/usermod.c (process_flags): Indicate that the user name is
invalid, instead of just a 'field'.
This commit is contained in:
parent
82b92af086
commit
d4e630b8cc
@ -28,6 +28,8 @@
|
|||||||
because getpwnam returned successfully.
|
because getpwnam returned successfully.
|
||||||
* src/usermod.c (process_flags): Do not display the usage in case
|
* src/usermod.c (process_flags): Do not display the usage in case
|
||||||
of an invalid -f value (similar to -e).
|
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>
|
2011-07-08 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
@ -971,7 +971,7 @@ static void process_flags (int argc, char **argv)
|
|||||||
case 'l':
|
case 'l':
|
||||||
if (!is_valid_user_name (optarg)) {
|
if (!is_valid_user_name (optarg)) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: invalid field '%s'\n"),
|
_("%s: invalid user name '%s'\n"),
|
||||||
Prog, optarg);
|
Prog, optarg);
|
||||||
exit (E_BAD_ARG);
|
exit (E_BAD_ARG);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user