Bug 149824 - Erasing trailing newline in commands.getstatusoutput
Summary: Erasing trailing newline in commands.getstatusoutput
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mihai Ibanescu
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-27 23:47 UTC by Ivan Gyurdiev
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-03-01 23:11:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.



Note You need to log in before you can comment on or make changes to this bug.