tags -patch
thanks

Hi,
This one time, at band camp, Georgios M. Zarkadas said:
> The default value of variable NAME_REGEX shipped within the package's file 
> /usr/share/adduser/adduser.conf (which is copied upon installation to
> etc/adduser.conf) is incorrect.
> 
> current value / should-be value (the patch - append "?$" to it):
> 
> - --- adduser.conf    2011-06-17 00:51:05.718593580 +0300
> +++ adduser.conf      2011-06-17 00:51:32.282093072 +0300
> @@ -82,4 +82,4 @@
>  
>  
>  # check user and group names also against this regular expression.
> - -#NAME_REGEX="^[a-z][-a-z0-9_]*\$"
> +#NAME_REGEX="^[a-z][-a-z0-9_]*\$?$"

This can't be fixing it, the default is commented out.

> The problem realised when tried to install hal (which installs user haldaemon)
> with the regex enabled and it failed to install with the following message:
> 
> - ---------------
> Γίνεται εγκατάσταση hal (0.5.14-3) ...
> adduser: Please enter a username matching the regular expression configured
> via the NAME_REGEX configuration variable.  Use the `--force-badname'
> option to relax this check or reconfigure NAME_REGEX.
> dpkg: σφάλμα στην επεξεργασία του hal (--configure):
>  η υποδιεργασία installed post-installation script επέστρεψε κατάσταση λάθους 
> 1 
> - ---------------
> 
> After checking the postinst script of hal package I didn't found anything 
> suspicious in its adduser invocation, nor on the tried out username 
> (haldaemon)
> so I started to study the adduser source code. 
> 
> Seeing the 'checkname' routine and the initial test expression, I finally came
> up with the patch which was tried and hal installation succeeded.

I wonder if this is a locale specific problem.  Can you try (in a
chroot, whatever), installing haldaemon with a default config for
adduser to try to reproduce it?  I am curious if it will succeed if you
then set LANG=C and install it again.  I suspect it will install.  If
this is the case, can you let me know?

Cheers,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sg...@debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to