Blame SOURCES/bz1121122-2-broken_syslog.patch

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