Date: Mon, 9 Oct 2000 19:10:52 +0100 From: "Lawrence Farr" <freebsd-net@sixforty.co.uk> To: <freebsd-stable@freebsd.org> Subject: RE: username with - Message-ID: <NDBBJNMBOLGAIICJIEIGEEAMDAAA.freebsd-net@sixforty.co.uk> In-Reply-To: <200010091802.MAA13347@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Can we also set adduser to do the same? (It won't allow .)
Lawrence Farr
EPC Direct Limited mailto:lawrence@epcdirect.co.uk
T:01179666123 F:01179666111 M:07970780901
> -----Original Message-----
> From: owner-freebsd-stable@FreeBSD.ORG
> [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Warner Losh
> Sent: 09 October 2000 19:02
> To: Gianmarco Giovannelli
> Cc: Doug Barton; stable@FreeBSD.ORG
> Subject: Re: username with -
>
>
> 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
>
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?NDBBJNMBOLGAIICJIEIGEEAMDAAA.freebsd-net>
