Blame SOURCES/bz1121122-2-broken_syslog.patch

e4ffb1
From 9db6e28d381b19f2a396ea1a0f06ae4d434c0a27 Mon Sep 17 00:00:00 2001
e4ffb1
From: Marek 'marx' Grac <mgrac@redhat.com>
e4ffb1
Date: Thu, 27 Nov 2014 13:36:16 +0100
e4ffb1
Subject: [PATCH 1/3] [fencing] Character \x00 can't be inside syslog message
e4ffb1
e4ffb1
---
e4ffb1
 fence/agents/lib/fencing.py.py | 4 +++-
e4ffb1
 1 file changed, 3 insertions(+), 1 deletion(-)
e4ffb1
e4ffb1
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
e4ffb1
index 740a4e0..302bba2 100644
e4ffb1
--- a/fence/agents/lib/fencing.py.py
e4ffb1
+++ b/fence/agents/lib/fencing.py.py
e4ffb1
@@ -1215,5 +1215,7 @@ class SyslogLibHandler(logging.StreamHandler):
e4ffb1
 		}[record.levelno]
e4ffb1
 
e4ffb1
 		msg = self.format(record)
e4ffb1
-		syslog.syslog(syslog_level, msg)
e4ffb1
+
e4ffb1
+		# syslos.syslog can not have 0x00 character inside or exception is thrown
e4ffb1
+		syslog.syslog(syslog_level, msg.replace("\x00","\n"))
e4ffb1
 		return
e4ffb1
-- 
e4ffb1
1.9.3
e4ffb1