summaryrefslogtreecommitdiffstats
path: root/instdata.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-05-30 19:09:51 +0000
committerChris Lumens <clumens@redhat.com>2007-05-30 19:09:51 +0000
commit11ade3eca3a628e2bf3fb800c26e50abc0e3db37 (patch)
treee78cf6e81ec126996979b8e8f316029a696bc1b7 /instdata.py
parent640d380a73ee94f5954e6b3150a18ae3a152c944 (diff)
downloadanaconda-11ade3eca3a628e2bf3fb800c26e50abc0e3db37.tar.gz
anaconda-11ade3eca3a628e2bf3fb800c26e50abc0e3db37.tar.xz
anaconda-11ade3eca3a628e2bf3fb800c26e50abc0e3db37.zip
Use shlex instead of a simple split to preserve quoting in authconfig commands
(#241657).
Diffstat (limited to 'instdata.py')
-rw-r--r--instdata.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/instdata.py b/instdata.py
index 56d939405..6191edd93 100644
--- a/instdata.py
+++ b/instdata.py
@@ -3,7 +3,7 @@
#
# Erik Troan <ewt@redhat.com>
#
-# Copyright 2001-2002 Red Hat, Inc.
+# Copyright 2001-2007 Red Hat, Inc.
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
@@ -31,6 +31,7 @@ import urllib
import iutil
import users
import rhpl
+import shlex
from flags import *
from constants import *
@@ -136,10 +137,10 @@ class InstallData:
if not self.isHeadless:
self.keyboard.write (anaconda.rootPath)
-
+
self.timezone.write (anaconda.rootPath)
- args = ["--update", "--nostart"] + self.auth.split()
+ args = ["--update", "--nostart"] + shlex.split(self.auth)
try:
if not flags.test: