summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-07-17 21:45:59 +0000
committerChris Lumens <clumens@redhat.com>2006-07-17 21:45:59 +0000
commit8a71039d91ee3209916a48181273612b595720e3 (patch)
tree8d2d9363339a8125bc67b14e069f63c80ab3ae68 /iutil.py
parente621335cd27591623f642a72a8809d73556e3faf (diff)
downloadanaconda-8a71039d91ee3209916a48181273612b595720e3.tar.gz
anaconda-8a71039d91ee3209916a48181273612b595720e3.tar.xz
anaconda-8a71039d91ee3209916a48181273612b595720e3.zip
Move path check into preexec_fn so absolute symlinks to things that don't exist
in the stage2 image work.
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/iutil.py b/iutil.py
index 281ff6eb7..c845bc33d 100644
--- a/iutil.py
+++ b/iutil.py
@@ -28,8 +28,8 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2,
def chroot ():
os.chroot(root)
- if not searchPath and not os.access (root + command, os.X_OK):
- raise RuntimeError, command + " can not be run"
+ if not searchPath and not os.access (command, os.X_OK):
+ raise RuntimeError, command + " can not be run"
if type(stdin) == type("string"):
stdin = open(stdin)