diff options
author | newton <newton@FreeBSD.org> | 2000-03-14 14:19:17 +0000 |
---|---|---|
committer | newton <newton@FreeBSD.org> | 2000-03-14 14:19:17 +0000 |
commit | c379f94f991d9453afe3853a10999240c538c161 (patch) | |
tree | 8a3621cd95392d93ac1b67153910b0a3a0b5d56f /usr.sbin | |
parent | f28f5915b49f6d545fba83143777714ea348e195 (diff) | |
download | FreeBSD-src-c379f94f991d9453afe3853a10999240c538c161.zip FreeBSD-src-c379f94f991d9453afe3853a10999240c538c161.tar.gz |
Fix the case where username validity test would incorrectly fail if
the specified username contained uppercase alphabetics.
PR: bin/17372
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/adduser/rmuser.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/adduser/rmuser.perl b/usr.sbin/adduser/rmuser.perl index 0e4296a..67dfa33 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"; |