From 44dfd6a858cb781534c74ff3f507be0337a0a62e Mon Sep 17 00:00:00 2001 From: Mark Newton Date: Tue, 14 Mar 2000 14:19:17 +0000 Subject: [PATCH] Fix the case where username validity test would incorrectly fail if the specified username contained uppercase alphabetics. PR: bin/17372 --- usr.sbin/adduser/rmuser.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/adduser/rmuser.perl b/usr.sbin/adduser/rmuser.perl index 0e4296a33070..67dfa33f06ae 100644 --- a/usr.sbin/adduser/rmuser.perl +++ b/usr.sbin/adduser/rmuser.perl @@ -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";