Allow # within configuration file comments
Line 20 of /etc/xen-tools/xen-tools.conf says: "Anything following a '#' character is ignored as a comment." This patch allows two or more hash characters in one row of the configuration files. Everything after the *first* hash is now ignored. Closes: #783060
This commit is contained in:
parent
94341ccd43
commit
0ccf513cf3
@ -70,7 +70,7 @@ sub readConfigurationFile ($$)
|
||||
next if ( length($line) < 1 );
|
||||
|
||||
# Strip trailing comments.
|
||||
if ( $line =~ /(.*)\#(.*)/ )
|
||||
if ( $line =~ /([^#]*)\#(.*)/ )
|
||||
{
|
||||
$line = $1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user