Date: Sat, 31 Jul 2004 15:03:13 GMT From: Weichuan Lin <linweichuan@hotmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/69846: the usename has to be writed as "/****/" by using the adduser Message-ID: <200407311503.i6VF3DqE013666@www.freebsd.org> Resent-Message-ID: <200407311510.i6VFAOAH040289@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407311503.i6VF3DqE013666>