From owner-freebsd-questions Mon Oct 23 14: 3:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from turtle.looksharp.net (cc360882-a.strhg1.mi.home.com [24.2.221.22]) by hub.freebsd.org (Postfix) with ESMTP id BFF3A37B4C5 for ; Mon, 23 Oct 2000 14:03:49 -0700 (PDT) Received: from localhost (bandix@localhost) by turtle.looksharp.net (8.9.3/8.9.3) with ESMTP id RAA66463; Mon, 23 Oct 2000 17:04:12 -0400 (EDT) (envelope-from bandix@looksharp.net) Date: Mon, 23 Oct 2000 17:04:12 -0400 (EDT) From: "Brandon D. Valentine" To: Salvo Bartolotta Cc: Chris Byrnes , freebsd-questions@FreeBSD.ORG Subject: Re: Removing user with "-" in username In-Reply-To: <20001023.21161000@bartequi.ottodomain.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 23 Oct 2000, Salvo Bartolotta wrote: >Dear Brandon Valentine and Chris Byrnes, > >The following letter from Warner Losh is from my personal (local) >archives, reposted for your convenience. > >
> >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 > >
Thank you, now if someone would commit that and then merge it back all would be well. -- Brandon D. Valentine "Few things are harder to put up with than the annoyance of a good example." -- Mark Twain, Pudd'nhead Wilson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message