| Summary: | rmuser(8) incorrectly identifies non-alphanum characters | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Mark Newton <newton> | ||||
| Component: | bin | Assignee: | newton | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.0-CURRENT | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Mark Newton
2000-03-14 14:10:02 UTC
Responsible Changed From-To: freebsd-bugs->newton Taking responsibility for my own PR On Wed, 15 Mar 2000 00:30:43 +1030, Mark Newton wrote: > I'll commit it later tonight then close the PR. Slow down. :-) > ! if ($login_name !~ /^[a-z0-9_][a-z0-9_\-]*$/); > ! if ($login_name !~ /^[a-zA-Z0-9_]{1,}$/); Look at what you're doing. Before, usernames had to start with a non-numeric character. You've changed more than you meant to. :-) Try this: if ($login_name !~ /^[a-z0-9_]\w*$/); Ciao, Sheldon. State Changed From-To: open->closed Fix committed - rev 1.10 of usr.sbin/adduser/rmuser.perl |