Un-botch my botched reduction in permitted characters in the permitted

username check which resulted from my attempt to expand them.

PR:		bin/17372
Reviewed by:	sheldonh
This commit is contained in:
Mark Newton 2000-03-14 14:27:34 +00:00
parent 05ecdd7037
commit 545dccdc92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58060

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-zA-Z0-9_]{1,}$/);
if ($login_name !~ /^[a-zA-Z0-9_]\w*$/);
} else {
if ($affirm) {
print STDERR "${whoami}: Error: -y option given without username!\n";