[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Freeipa-devel] [PATCH] 231 Prevent garbage from readline on standard output of dogtag-ipa-retrieve-agent



Hi,

the attached patch fixes <https://fedorahosted.org/freeipa/ticket/4064>.

Honza

--
Jan Cholasta
>From dce319932ad60ab6982478db0a2f869e360bc58f Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jcholast redhat com>
Date: Tue, 10 Dec 2013 16:32:08 +0100
Subject: [PATCH] Prevent garbage from readline on standard output of
 dogtag-ipa-retrieve-agent.

https://fedorahosted.org/freeipa/ticket/4064
---
 install/certmonger/dogtag-ipa-retrieve-agent-submit | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/install/certmonger/dogtag-ipa-retrieve-agent-submit b/install/certmonger/dogtag-ipa-retrieve-agent-submit
index 3781fc5..70cbd82 100644
--- a/install/certmonger/dogtag-ipa-retrieve-agent-submit
+++ b/install/certmonger/dogtag-ipa-retrieve-agent-submit
@@ -23,6 +23,10 @@
 # retrieve the updated certificate from IPA.
 
 import os
+# Prevent garbage from readline on standard output
+# (see https://fedorahosted.org/freeipa/ticket/4064)
+if not os.isatty(1):
+    os.environ['TERM'] = 'dumb'
 import sys
 import shutil
 import tempfile
-- 
1.8.4.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]