diff options
author | newton <newton@FreeBSD.org> | 2000-03-14 14:27:34 +0000 |
---|---|---|
committer | newton <newton@FreeBSD.org> | 2000-03-14 14:27:34 +0000 |
commit | 9c8660d95bec49af2657bcde4f2dfaa0cbf8a237 (patch) | |
tree | 016879d235793c689e3818085c61940cedc94ef9 /usr.sbin/adduser | |
parent | 33e9ba02261a2364d5cd3839c6b9b6185d57d958 (diff) | |
download | FreeBSD-src-9c8660d95bec49af2657bcde4f2dfaa0cbf8a237.zip FreeBSD-src-9c8660d95bec49af2657bcde4f2dfaa0cbf8a237.tar.gz |
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
Diffstat (limited to 'usr.sbin/adduser')
-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 67dfa33..8f6d56e 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-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"; |