Date: Mon, 09 Oct 2000 12:02:05 -0600 From: Warner Losh <imp@village.org> To: Gianmarco Giovannelli <gmarco@giovannelli.it> Cc: Doug Barton <DougB@gorean.org>, stable@FreeBSD.ORG Subject: Re: username with - Message-ID: <200010091802.MAA13347@harmony.village.org> In-Reply-To: Your message of "Mon, 09 Oct 2000 08:38:03 %2B0200." <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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010091802.MAA13347>