Suggest badname if name has special characters

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2076819

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
Iker Pedrosa
2022-04-26 16:45:04 +02:00
committed by Serge Hallyn
parent 58b6e97a9e
commit 0593b330d8
3 changed files with 4 additions and 3 deletions

View File

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