summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-09 05:22:46 +0000
committerMatt Wilson <msw@redhat.com>1999-09-09 05:22:46 +0000
commit3ab2cb6b80d6f55ff29bf07546c0fc0f2c03c4b7 (patch)
treed78ea89067d83b76d825c170ef45dca9aecb8873 /iutil.py
parent91d3d396328820e5a9283f130d360cb3a65ac3ef (diff)
downloadanaconda-3ab2cb6b80d6f55ff29bf07546c0fc0f2c03c4b7.tar.gz
anaconda-3ab2cb6b80d6f55ff29bf07546c0fc0f2c03c4b7.tar.xz
anaconda-3ab2cb6b80d6f55ff29bf07546c0fc0f2c03c4b7.zip
o splash screen
o lilo 'other' entries should work o exceptions for 'file does not exist' in iutil *exec* o search paths for help files o padding changes in gui
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/iutil.py b/iutil.py
index 24e014a76..5b8ccc859 100644
--- a/iutil.py
+++ b/iutil.py
@@ -29,6 +29,9 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2,
stdout = getfd(stdout)
stderr = getfd(stderr)
+ if not os.access (command, os.X_OK):
+ raise RuntimeError, command + " can not be run"
+
childpid = os.fork()
if (not childpid):
if (root != '/'): isys.chroot (root)
@@ -55,6 +58,9 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2,
def execWithCapture(command, argv, searchPath = 0, root = '/', stdin = 0):
+ if not os.access (command, os.X_OK):
+ raise RuntimeError, command + " can not be run"
+
(read, write) = os.pipe()
childpid = os.fork()