Author: baggins                      Date: Sun Oct  9 12:40:45 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- don't stop reading plugins.conf on nonexistant user/group

---- Files affected:
SOURCES:
   munin-node-config.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/munin-node-config.patch
diff -u /dev/null SOURCES/munin-node-config.patch:1.1
--- /dev/null   Sun Oct  9 14:40:45 2005
+++ SOURCES/munin-node-config.patch     Sun Oct  9 14:40:40 2005
@@ -0,0 +1,20 @@
+--- munin-1.3.2-plugins/node/munin-node.in~    2005-04-15 22:31:21.000000000 
+0200
++++ munin-1.3.2-plugins/node/munin-node.in     2005-10-09 14:39:18.137528464 
+0200
+@@ -859,7 +859,7 @@
+           if (!defined $sconf->{$service}{'user'})
+           {
+               warn "User \"$tmpid\" in configuration file \"$dir/$file\" 
nonexistant. Skipping plugin.";
+-              return undef;
++              next;
+           }
+       }
+       elsif (/^\s*group\s+(.+)\s*$/)
+@@ -881,7 +881,7 @@
+               if (!defined $g and !$optional)
+               {
+                   warn "Group \"$group\" in configuration file \"$dir/$file\" 
nonexistant. Skipping plugin.";
+-                  return undef;
++                  next;
+               }
+               elsif (!defined $g and $optional)
+               {
================================================================
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to