summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-07-05 02:33:41 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-07-05 02:33:41 (GMT)
commit19add24cd6ecc2a002fae684684e476bae8b1cb9 (patch)
tree928556127068adc1c645430c0dbd37103a9ebbb4
parent28895fa59a8deb026ed19865badc406ae545f417 (diff)
downloadlinhes_pkgbuild-19add24cd6ecc2a002fae684684e476bae8b1cb9.zip
linhes_pkgbuild-19add24cd6ecc2a002fae684684e476bae8b1cb9.tar.gz
linhes_pkgbuild-19add24cd6ecc2a002fae684684e476bae8b1cb9.tar.bz2
linhes-config:correct name of stored commands for user_call.
escape out command line args before storing to file
-rwxr-xr-xabs/core-testing/LinHES-config/myth_user_call.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/abs/core-testing/LinHES-config/myth_user_call.py b/abs/core-testing/LinHES-config/myth_user_call.py
index 817f78f..63915a4 100755
--- a/abs/core-testing/LinHES-config/myth_user_call.py
+++ b/abs/core-testing/LinHES-config/myth_user_call.py
@@ -25,7 +25,7 @@ def chroot_check():
def store_commands(full_call):
- file_name = "/root/myth_call_user.out"
+ file_name = "/root/myth_user_call.out"
try:
f = open(file_name,'a')
except:
@@ -123,13 +123,13 @@ def main(argv):
sys.exit(0)
elif opt in ("-c") :
module = arg
- full_call += ''' -c "%s" ''' %re.escape(arg)
+ full_call += ''' -c %s ''' %re.escape(arg)
elif opt in ("-u") :
username = arg
- full_call += ''' -u "%s" ''' %re.escape(arg)
+ full_call += ''' -u %s ''' %re.escape(arg)
elif opt in ("-p") :
password = arg
- full_call += ''' -p "%s" ''' %re.escape(arg)
+ full_call += ''' -p %s ''' %re.escape(arg)
elif opt in ("-i") :
INIT_CHECK = False
full_call += ''' -i '''