From owner-freebsd-stable Mon Oct 9 11: 2:20 2000 Delivered-To: freebsd-stable@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 60AF637B66E for ; Mon, 9 Oct 2000 11:02:13 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.0/8.11.0) with ESMTP id e99I27Y08768; Mon, 9 Oct 2000 12:02:08 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id MAA13347; Mon, 9 Oct 2000 12:02:05 -0600 (MDT) Message-Id: <200010091802.MAA13347@harmony.village.org> To: Gianmarco Giovannelli Subject: Re: username with - Cc: Doug Barton , stable@FreeBSD.ORG In-reply-to: Your message of "Mon, 09 Oct 2000 08:38:03 +0200." <5.0.0.25.0.20001009083602.02993e90@194.184.65.4> References: <5.0.0.25.0.20001009083602.02993e90@194.184.65.4> <5.0.0.25.0.20001002082345.0256ceb0@194.184.65.4> Date: Mon, 09 Oct 2000 12:02:05 -0600 From: Warner Losh Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <5.0.0.25.0.20001009083602.02993e90@194.184.65.4> Gianmarco Giovannelli writes: : Let's remove the check from rmuser : if a user is in the user db, rmuser : must know how to wipe it from there :-) Index: rmuser.perl =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/adduser/rmuser.perl,v retrieving revision 1.10 diff -u -r1.10 rmuser.perl --- rmuser.perl 2000/03/14 14:27:34 1.10 +++ rmuser.perl 2000/10/09 18:00:58 @@ -107,8 +107,8 @@ if ($#ARGV == 0) { # Username was given as a parameter $login_name = pop(@ARGV); - die "Sorry, login name must contain alphanumeric characters only.\n" - if ($login_name !~ /^[a-zA-Z0-9_]\w*$/); + die "Sorry, login name must not contain colons (:).\n" + if ($login_name =~ /:/); } else { if ($affirm) { print STDERR "${whoami}: Error: -y option given without username!\n"; Nuff said? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message