From owner-freebsd-stable Tue Oct 24 13:26:52 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.wgate.com (unknown [38.219.83.4]) by hub.freebsd.org (Postfix) with ESMTP id 3F23C37B479 for ; Tue, 24 Oct 2000 13:26:50 -0700 (PDT) Received: from way95.eng.tvol.net ([10.32.1.145]) by mail.wgate.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 4KF98S8Z; Tue, 24 Oct 2000 16:26:43 -0400 Received: from kway by way95.eng.tvol.net with local (Exim 3.12 #1 (Debian)) id 13oBbn-0007Sa-00; Tue, 24 Oct 2000 17:27:47 -0400 Date: Tue, 24 Oct 2000 17:27:47 -0400 From: Kevin Way To: Chris Byrnes Cc: freebsd-stable@freebsd.org Subject: Re: Removing user with "-" in username Message-ID: <20001024172747.A28534@wgate.com> References: <200010231940.e9NJeeQ57835@awww.jeah.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <200010231940.e9NJeeQ57835@awww.jeah.net>; from chris@awww.jeah.net on Mon, Oct 23, 2000 at 02:40:40PM -0500 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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