summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--ChangeLog5
-rw-r--r--iutil.py4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index cd22d5360..c9c3aebfd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-17 Chris Lumens <clumens@redhat.com>
+
+ * iutil.py (execWithRedirect): Move path check into preexec_fn so
+ absolute symlinks to things that don't exist in the stage2 image work.
+
2006-07-17 Paul Nasrat <pnasrat@redhat.com>
* whiteout.py: drop openjade>docbook-dtds (#196733)
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)