bin/69846: the usename has to be writed as "/****/" by using the
adduser
Weichuan Lin
linweichuan at hotmail.com
Sat Jul 31 08:10:38 PDT 2004
>Number: 69846
>Category: bin
>Synopsis: the usename has to be writed as "/****/" by using the adduser
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 31 15:10:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Weichuan Lin
>Release: 4.10
>Organization:
Zhejiang University China
>Environment:
FreeBSD Release 4.10
>Description:
when the root uses the "adduser" to add a new user to system , he has to name the user as the format of /username/,or the program doesn't continue to realy add a user to system. It will tell you "Please enter a username" and ask you "Enter username" again and again until you add the "/" at both ends of the username you just entered. later you have to login to the system with the username of "/username/".
>How-To-Repeat:
simply execute the adduser program withou any parameter.
>Fix:
modify the source code of the adduser at the line of 323,the if sentence like follow
if ($name eq $usernameregexp)
and rewrite it as follow
if ($name eq /$usernameregexp/)
then the bug will disappear.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list