Red Hat Bugzilla – Bug 1266379
disable sgmlop import in rhn_check
Last modified: 2015-09-25 04:19:42 EDT
Description of problem:
On systems that have the python-reportlab module installed, the 'sgmlop' module causes scripts written by rhn_check.py to contain DOS line breaks (CR LF). This causes the script to fail because execve() cannot find an interpreter named /bin/bash^M (or similar).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install python-reportlab module
2. Queue a script command in Satellite to run on a client.
3. Run rhn_check on that client.
Script is never executed.
strace on rhn_check.py shows that the execve() call fails with a ENOENT (no such file or directory):
708 14:27:58.553147 execve("/tmp/rhn-remote-script", ["/tmp/rhn-remote-script"], ...) = -1 ENOENT (No such file or directory) <0.000066>
The fix for this has been merged upstream in:
Therefore it should be relatively simple to pull a commit that was added to upstream a year ago.
*** This bug has been marked as a duplicate of bug 1234612 ***