Package: vserver-debiantools
Version: 0.3.4
Severity: important
Tags: patch


When using the newvserver script with a domain argument that contains
numerals and error occurs.

<quote>
# newvserver --hostname server1 --domain 247example.com --ip 1.2.3.4 

newvserver error: --domain requires a dns domain-name
e.g. "example.com"
</quote>

Line 213 has the regex:

[a-z]*[a-z]

which i think should actually be:

[a-z0-9]*[a-z]

since numerals are allowed in domain names this regex should allow for
them.

Thanks,
Bram.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: sparc (sparc64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-vserver-sparc64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages vserver-debiantools depends on:
ii  binutils                    2.17-3       The GNU assembler, linker and bina
ii  debootstrap                 0.3.3.2etch1 Bootstrap a basic Debian system
ii  rsync                       2.6.9-2etch2 fast remote file copy program (lik
ii  util-vserver                0.30.212-1   user-space tools for Linux-VServer

vserver-debiantools recommends no packages.

-- no debconf information
--- /usr/sbin/newvserver        2006-12-09 05:46:05.000000000 -0500
+++ /usr/sbin/newvserver-domainfix      2008-07-29 11:42:06.000000000 -0400
@@ -210,7 +210,7 @@
                        ;;
                    --domain)
                        case "$2" in
-                           [a-z]*[a-z])
+                           [a-z0-9]*[a-z])
                                VDOMAIN="$2"
                                ;;
                            *)

Reply via email to