summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-02-13 02:33:18 +0000
committerJeremy Katz <katzj@redhat.com>2002-02-13 02:33:18 +0000
commit3621f4b0966e98523f0a4e06f33885115ebe98f5 (patch)
tree16bcc71362a68f099f45ee190513e99f137c6ff9 /iutil.py
parentd542b7e04f56c537a78b703c3f05e15e9c33b5e9 (diff)
downloadanaconda-3621f4b0966e98523f0a4e06f33885115ebe98f5.tar.gz
anaconda-3621f4b0966e98523f0a4e06f33885115ebe98f5.tar.xz
anaconda-3621f4b0966e98523f0a4e06f33885115ebe98f5.zip
use os.chroot now
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 77680cb28..ec5de9c0c 100644
--- a/iutil.py
+++ b/iutil.py
@@ -66,7 +66,7 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2,
childpid = os.fork()
if (not childpid):
if (root and root != '/'):
- isys.chroot (root)
+ os.chroot (root)
os.chdir("/")
if ignoreTermSigs:
@@ -124,7 +124,7 @@ def execWithCapture(command, argv, searchPath = 0, root = '/', stdin = 0,
childpid = os.fork()
if (not childpid):
- if (root and root != '/'): isys.chroot (root)
+ if (root and root != '/'): os.chroot (root)
os.dup2(write, catchfd)
os.close(write)
os.close(read)