Bug 149824

Summary: Erasing trailing newline in commands.getstatusoutput
Product: [Fedora] Fedora Reporter: Ivan Gyurdiev <ivg231>
Component: pythonAssignee: Mihai Ibanescu <mihai.ibanescu>
Status: CLOSED NOTABUG QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, katzj
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-01 23:11:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ivan Gyurdiev 2005-02-27 23:47:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050224 Firefox/1.0.1 Fedora/1.0.1-1

Description of problem:
Not sure if this is a bug or a feature, but it looks like a bug.
This altering of the output breaks the SElinux genhomedircon command,
and causes pure chaos on my strict policy system.

--- commands.py 2005-02-27 18:42:23.000000000 -0500
+++ commands.new        2005-02-27 18:43:03.000000000 -0500
@@ -54,7 +54,6 @@
     text = pipe.read()
     sts = pipe.close()
     if sts is None: sts = 0
-    if text[-1:] == '\n': text = text[:-1]
     return sts, text


Version-Release number of selected component (if applicable):
python-2.4-4

How reproducible:
Always

Steps to Reproduce:
1. See summary
  

Additional info:

Comment 1 Ivan Gyurdiev 2005-03-01 23:11:08 UTC
I was told this is a feature, and bug was resolved in selinux.
Closing.