summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-28 05:51:40 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-28 05:51:40 +0000
commite330d811d0650723e3e3314831a42edb750a6620 (patch)
tree9e5ecc03e323d0caccac146d10a3b777bf264e7c /iutil.py
parent2c5467f04601b3107777fe90d85af089cce1c6ac (diff)
downloadanaconda-e330d811d0650723e3e3314831a42edb750a6620.tar.gz
anaconda-e330d811d0650723e3e3314831a42edb750a6620.tar.xz
anaconda-e330d811d0650723e3e3314831a42edb750a6620.zip
we really need this, otherwise you can't debug/save tracebacks to a floppy if you crash in the child
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/iutil.py b/iutil.py
index 88202aba5..d39b778dc 100644
--- a/iutil.py
+++ b/iutil.py
@@ -60,12 +60,8 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2,
stdout = getfd(stdout)
stderr = getfd(stderr)
-#
-# XXX What is this good for? If we can't run a command we'll error
-# out below won't we?
-#
-# if not os.access (root + command, os.X_OK):
-# raise RuntimeError, command + " can not be run"
+ if not os.access (root + command, os.X_OK):
+ raise RuntimeError, command + " can not be run"
childpid = os.fork()
if (not childpid):