Blame SOURCES/0003-Fix-targetclid-daemon-infinite-stuck.patch

e40f95
From 5349bc9d1105c71158fce8dfd6a4733eb90dbb1a Mon Sep 17 00:00:00 2001
e40f95
From: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
e40f95
Date: Mon, 30 Mar 2020 19:36:26 +0530
e40f95
Subject: [PATCH] Fix targetclid daemon infinite stuck
e40f95
e40f95
We need to open a byte IO stream because we are actually dealing with
e40f95
binary data in memory.
e40f95
e40f95
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
e40f95
---
e40f95
 daemon/targetclid | 2 +-
e40f95
 1 file changed, 1 insertion(+), 1 deletion(-)
e40f95
e40f95
diff --git a/daemon/targetclid b/daemon/targetclid
e40f95
index dfc22ce..d4c6562 100755
e40f95
--- a/daemon/targetclid
e40f95
+++ b/daemon/targetclid
e40f95
@@ -154,7 +154,7 @@ class TargetCLI:
e40f95
                 connection.close()
e40f95
                 still_listen = False
e40f95
             else:
e40f95
-                self.con._stdout = self.con._stderr = f = io.StringIO()
e40f95
+                self.con._stdout = self.con._stderr = f = io.BytesIO()
e40f95
                 try:
e40f95
                     # extract multiple commands delimited with '%'
e40f95
                     list_data = data.decode().split('%')
e40f95
-- 
e40f95
2.21.0
e40f95