merge 575367 409862
thanks

Hi Yann

On Thu, Mar 25, 2010 at 10:06:20AM +0100, Yann Dirson wrote:
> Package: vserver-debiantools
> Version: 0.6.4
> 
> # newvserver --hostname a [...]
> newvserver error: --hostname must be a hostname for the vserver
> 
> looking at what could be wrong with one-char hostnames, I am still
> puzzled by the expression used with the "case" which deals with
> hostname parsing.
> 
> If you insist on doing such a check (ie. you
> really feel "[a-z0-9]*([a-z0-9_])" is not enough), why not using
> "[a-z0-9]?(*([a-z0-9_])[a-z0-9])" ?

Because then you can define the hostname '_a' which is not a valid
hostname. Also with this definition you can not have the hostname
'test-host' as you have forgotten the '-' character. But if you
add that it causes other problems.

In any case you can see a more lengthy discussion at
bugs.debian.org/409862 about this issue. I have not yet got a
really good check description for this. It is close but not perfect.

Best regards,

// Ola

> -- 
> Yann
> 
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  o...@debian.org                     Annebergsslingan 37      \
|  o...@inguza.com                      654 65 KARLSTAD          |
|  http://inguza.com/                  +46 (0)70-332 1551       |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to