summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2007-01-15 19:42:53 +0000
committerPeter Jones <pjones@redhat.com>2007-01-15 19:42:53 +0000
commitb69674ebb8ba9da2446497e0e756bb1f8da639b5 (patch)
treeec1e2720b68adc8c761ea448fe48121a3e623ccf /iutil.py
parent466318ae4044e315971cb42375524490575dd4de (diff)
downloadanaconda-b69674ebb8ba9da2446497e0e756bb1f8da639b5.tar.gz
anaconda-b69674ebb8ba9da2446497e0e756bb1f8da639b5.tar.xz
anaconda-b69674ebb8ba9da2446497e0e756bb1f8da639b5.zip
- explicitly make argv a list in execWith{Capture,Redirect}
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/iutil.py b/iutil.py
index 02eccfcb7..0a64cf2a5 100644
--- a/iutil.py
+++ b/iutil.py
@@ -32,6 +32,7 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2,
if not searchPath and not os.access (command, os.X_OK):
raise RuntimeError, command + " can not be run"
+ argv = list(argv)
if type(stdin) == type("string"):
if os.access(stdin, os.R_OK):
stdin = open(stdin)
@@ -55,6 +56,7 @@ def execWithCapture(command, argv, stdin = 0, stderr = 2, root='/'):
def chroot():
os.chroot(root)
+ argv = list(argv)
if type(stdin) == type("string"):
if os.access(stdin, os.R_OK):
stdin = open(stdin)