[Bug 1027538] [NEW] Bad handle of # for comments in munin-node config file
Thomas
touffman at 9online.fr
Sun Jul 22 00:56:18 UTC 2012
Public bug reported:
My config :
Description: Ubuntu 12.04 LTS
Release: 12.04
Package:
munin-node:
Installé : 1.4.6-3ubuntu3.1
Candidat : 1.4.6-3ubuntu3.1
Table de version :
*** 1.4.6-3ubuntu3.1 0
500 http://fr.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
100 /var/lib/dpkg/status
1.4.6-3ubuntu3 0
500 http://fr.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
Found this problem using a # in a password for Mysql user root with a config file containing things like that :
[mysql*]
user root
env.mysqlopts --defaults-file=/etc/mysql/debian.cnf
env.mysqluser root
env.mysqlpassword test#test
Searching in the code, I've solved the problem (for me) changing line 96 of /usr/share/perl5/Munin/Common/Config.pm :
- $_[0] =~ s/#.*//;
+ $_[0] =~ s/(^|\s+)#.*//;
** Affects: munin (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to munin in Ubuntu.
https://bugs.launchpad.net/bugs/1027538
Title:
Bad handle of # for comments in munin-node config file
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/munin/+bug/1027538/+subscriptions
More information about the Ubuntu-server-bugs
mailing list