Bad handle of # for comments in munin-node config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
munin (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
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://
100 /var/lib/
1.4.6-3ubuntu3 0
500 http://
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-
env.mysqluser root
env.mysqlpassword test#test
Searching in the code, I've solved the problem (for me) changing line 96 of /usr/share/
- $_[0] =~ s/#.*//;
+ $_[0] =~ s/(^|\s+)#.*//;
This appears to be fixed in munin 2 by allowing '#' to be escaped with '\': https:/ /github. com/munin- monitoring/ munin/commit/ 786481518fb77a2 7567b818359005f de9b125c27