1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Fix the case where username validity test would incorrectly fail if

the specified username contained uppercase alphabetics.

PR:		bin/17372
This commit is contained in:
Mark Newton 2000-03-14 14:19:17 +00:00
parent d137714f11
commit 44dfd6a858
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58058

View File

@ -108,7 +108,7 @@ if ($#ARGV == 0) {
# Username was given as a parameter
$login_name = pop(@ARGV);
die "Sorry, login name must contain alphanumeric characters only.\n"
if ($login_name !~ /^[a-z0-9_][a-z0-9_\-]*$/);
if ($login_name !~ /^[a-zA-Z0-9_]{1,}$/);
} else {
if ($affirm) {
print STDERR "${whoami}: Error: -y option given without username!\n";