selinux/policycoreutils/scripts
Petr Lautrbach 2e60a2c80e policycoreutils: Don't use subprocess.getstatusoutput() in Python 2 code
The commit 7574a50f tried to improve compatibility with Python 3. It changed
the code to use subprocess.getstatusoutput() instead of
commands.getstatusoutput(). Unfortunately subprocess.getstatusoutput() is not
available in Python 2. This patch changes how getstatusoutput() is imported so
the code works on Python 2 and Python 3.

Fixes:
$ chcat -d something
Traceback (most recent call last):
  File "/usr/bin/chcat", line 432, in <module>
    sys.exit(chcat_replace(["s0"], cmds, login_ind))
  File "/usr/bin/chcat", line 271, in chcat_replace
    rc = subprocess.getstatusoutput(cmd)
AttributeError: 'module' object has no attribute 'getstatusoutput'

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
2016-08-09 15:55:02 -04:00
..
.gitignore policycoreutils: setfiles/restorecon minor improvements 2012-09-12 12:16:00 -04:00
chcat policycoreutils: Don't use subprocess.getstatusoutput() in Python 2 code 2016-08-09 15:55:02 -04:00
chcat.8 Laurent Bigonville patch to fix various minor manpage issues and correct section numbering. 2013-10-24 13:58:37 -04:00
fixfiles Lots of fixes for fixfiles 2013-10-24 13:58:39 -04:00
fixfiles.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
Makefile genhomedircon is no longer a script, but a link to semodule 2013-10-24 13:58:39 -04:00