Date: Tue, 24 Oct 2000 17:27:47 -0400 From: Kevin Way <kway@wgate.com> To: Chris Byrnes <chris@awww.jeah.net> Cc: freebsd-stable@freebsd.org Subject: Re: Removing user with "-" in username Message-ID: <20001024172747.A28534@wgate.com> In-Reply-To: <200010231940.e9NJeeQ57835@awww.jeah.net>; from chris@awww.jeah.net on Mon, Oct 23, 2000 at 02:40:40PM -0500 References: <200010231940.e9NJeeQ57835@awww.jeah.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> awww# rmuser -y irc-argentina > Sorry, login name must contain alphanumeric characters only. I just submitted a PR and the following (trivial) patch such that we should get a fix in the tree RSN. --Kevin --- rmuser.perl.bak Tue Oct 24 16:05:49 2000 +++ rmuser.perl Tue Oct 24 16:20:35 2000 @@ -108,7 +108,7 @@ # 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*$/); + if ($login_name !~ /^[a-zA-Z0-9_][a-zA-Z0-9_\-]*$/); } else { if ($affirm) { print STDERR "${whoami}: Error: -y option given without username!\n"; ----------------------------------------------------------------------- kevin way 215 354 5287 software engineer kway@wgate.com worldgate communications 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?20001024172747.A28534>