summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/mon/files/mon-1.2.0-syslog.patch')
-rw-r--r--app-admin/mon/files/mon-1.2.0-syslog.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/app-admin/mon/files/mon-1.2.0-syslog.patch b/app-admin/mon/files/mon-1.2.0-syslog.patch
new file mode 100644
index 0000000..ad0c668
--- /dev/null
+++ b/app-admin/mon/files/mon-1.2.0-syslog.patch
@@ -0,0 +1,18 @@
+--- mon-1.2.0.orig/mon 2007-10-08 19:04:50.000000000 +0200
++++ mon-1.2.0/mon 2007-10-09 16:04:16.000000000 +0200
+@@ -5410,11 +5410,10 @@
+
+ no warnings; # Redefining syslog
+ sub syslog {
+- eval {
+- local $SIG{"__DIE__"}= sub { };
+- my @log = map { s/\%//mg; } @_;
+- Sys::Syslog::syslog(@log);
+- }
++ local $SIG{"__DIE__"} = sub { };
++ my ($level, $msg) = @_;
++ $msg =~ s/\%//mg;
++ Sys::Syslog::syslog($level, $msg);
+ }
+ use warnings;
+