-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Since I filed this bug I investigated what actually causes it:
The version number being parsed is read from the output of the bind tool 
"rndc", which prints
        Version: Version: 9.6-ESV-R1
as last line when executed without arguments.

The script uses the following regular expression to get the minor version 
number from this line:
        /^Version:\s+9\.(\d+)\./o

Obviously, because this regex expects a dot after the "6", it doesn't match the 
line. I suggest changing the last delimiter to any non-digit:
        /^Version:\s+9\.(\d+)\D/o

Patch follows:

- --- bind9_rndc.dist     2010-07-11 15:29:27.000000000 +0200
+++ bind9_rndc  2010-07-18 20:56:45.000000000 +0200
@@ -63,7 +63,7 @@
 # check to see if we're running bind 9.6
 if ( open VERSION, "$rndc 2>&1 |" ) {
     while ( my $line = <VERSION> ) {
- -       if ( $line =~ m/^Version:\s+9\.(\d+)\./o ) {
+       if ( $line =~ m/^Version:\s+9\.(\d+)\D/o ) {
            $version96 = 1 if $1 >= 6;
        }
     }

- --
Clemens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)

iEYEARECAAYFAkxDTy0ACgkQLxfr3OBB3pwA9gCfTRc42Tfh01dKPb0V4MD0MMXY
LTgAn1Z4DYriptZ6vbf3z73RygAp0uO0
=Uf1N
-----END PGP SIGNATURE-----



--
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