From owner-freebsd-bugs@FreeBSD.ORG Sat Jul 31 15:10:38 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C3FD16A4CF for ; Sat, 31 Jul 2004 15:10:38 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4068D43D5E for ; Sat, 31 Jul 2004 15:10:38 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6VFAOBj040290 for ; Sat, 31 Jul 2004 15:10:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6VFAOAH040289; Sat, 31 Jul 2004 15:10:24 GMT (envelope-from gnats) Resent-Date: Sat, 31 Jul 2004 15:10:24 GMT Resent-Message-Id: <200407311510.i6VFAOAH040289@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Weichuan Lin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A45016A4CF for ; Sat, 31 Jul 2004 15:03:32 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFEA543D46 for ; Sat, 31 Jul 2004 15:03:31 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i6VF3EDr013667 for ; Sat, 31 Jul 2004 15:03:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i6VF3DqE013666; Sat, 31 Jul 2004 15:03:13 GMT (envelope-from nobody) Message-Id: <200407311503.i6VF3DqE013666@www.freebsd.org> Date: Sat, 31 Jul 2004 15:03:13 GMT From: Weichuan Lin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: bin/69846: the usename has to be writed as "/****/" by using the adduser X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2004 15:10:38 -0000 >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: