[Adduser-devel] Bug#283110: adduser won't add usernames containing dots

Jesús M. Navarro "Jesús M. Navarro" , 283110@bugs.debian.org
Sat, 27 Nov 2004 19:59:55 +0100

Hi, Marc:

El Sábado, 27 Noviembre 2004 14:33, Marc Haber escribió:
> On Fri, Nov 26, 2004 at 06:36:21PM +0100, Jesús M. Navarro wrote:
> > I think you will have to recheck that.  Your change seems to have been
> > lost somewhere along the way:
> Michelle has never submitted a patch for the Debian adduser package.
> She must be talking about a local patch to her local systems.

Yes, I misundernstood her.  I thought she was the package maintainer and she 
was saying that she patched adduser by Woody version.

> I will see what I can do wrt the Debian package.

Well, these are my suggested changes:

***start patch***
<     if ($allow_badname && $name !~ /^[A-Za-z_][-_A-Za-z0-9]*\$?$/) {
>     if ($allow_badname && $name !~ /^[A-Za-z_][\-_\.A-Za-z0-9]*\$?$/) {
< followed by lower case letters and numbers.  Use the `--force-badname'
< option to allow underscores, and uppercase.\n");
> followed by lower case letters, numbers or dashes.  Use the 
> option to allow underscores, dots, and uppercase.\n");
***end patch***