bin/69846: the usename has to be writed as "/****/" by using the
linweichuan at hotmail.com
Sat Jul 31 08:10:38 PDT 2004
>Synopsis: the usename has to be writed as "/****/" by using the adduser
>Arrival-Date: Sat Jul 31 15:10:23 GMT 2004
>Originator: Weichuan Lin
Zhejiang University China
FreeBSD Release 4.10
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/".
simply execute the adduser program withou any parameter.
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.
More information about the freebsd-bugs