Date: Sat, 10 Jun 2000 20:52:41 -0400 From: "William Wong" <willwong@anime.ca> To: <freebsd-stable@freebsd.org> Subject: rmuser bug Message-ID: <000f01bfd33f$597b0ca0$0300a8c0@anime.ca>
next in thread | raw e-mail | index | archive | help
Hi there,
I noticed a small bug in the rmuser script version:
(# $FreeBSD: src/usr.sbin/adduser/rmuser.perl,v 1.8.2.1 2000/03/20 13:00:36
peter Exp $)
... which prevents you from deleting usernames which contain the dash ('-')
character.
There was a similar check done later on in the code, so I just modified it a
bit to match (since I don't know much about perl and expressions :) I'm not
sure if it's been fixed though in the most current/stable version though.
- Will
There's a line of code that reads:
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*$/);
}
... when it should read:
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-z0-9_][a-z0-9_\-]*$/);
}
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?000f01bfd33f$597b0ca0$0300a8c0>
