Control: tags -1 patch

Attached is a patch.
Description: Allow # within configuration file comments
 Line 20 of /etc/xen-tools/xen-tools.conf says:
 "Anything following a '#' character is ignored as a comment."
 .
 That patch allow two hash characters in configuration files.
 .
 Everything after the *first* hash is now ignored.
Author: Jean-Michel Nirgal Vourgère <jmv_...@nirgal.com>
Bug-Debian: https://bugs.debian.org/732456
Forwarded: no
Last-Update: 2015-04-21

--- xen-tools-4.5.orig/lib/Xen/Tools/Common.pm
+++ xen-tools-4.5/lib/Xen/Tools/Common.pm
@@ -70,7 +70,7 @@ sub readConfigurationFile ($$)
         next if ( length($line) < 1 );
 
         # Strip trailing comments.
-        if ( $line =~ /(.*)\#(.*)/ )
+        if ( $line =~ /([^#]*)\#(.*)/ )
         {
             $line = $1;
         }

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to