Bad handle of # for comments in munin-node config file

Bug #1027538 reported by Thomas
6
This bug affects 1 person
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://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+)#.*//;

Revision history for this message
Kenyon Ralph (kralph) wrote :

This appears to be fixed in munin 2 by allowing '#' to be escaped with '\': https://github.com/munin-monitoring/munin/commit/786481518fb77a27567b818359005fde9b125c27

Revision history for this message
Thomas (thomasl) wrote :

Well, this is good news ;)

Revision history for this message
Daniel Hahler (blueyed) wrote :

I am marking this as fixed, because Munin 2 is in the Ubuntu development release already and should have the fix for this.

Changed in munin (Ubuntu):
importance: Undecided → Low
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.