[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XEND] split command-line arguments to the bootloader script properly.



# HG changeset patch
# User Tim Deegan <tim.deegan@xxxxxxxxxxxxx>
# Node ID 7894224d264b69bd5d6c1f374a54a5cbdadcce6d
# Parent  16e4a5a7cfd7b1d5fd1592c8c5339f7dfaec5ad1
[XEND] split command-line arguments to the bootloader script properly.
Signed-off-by: Tim Deegan <tim.deegan@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendBootloader.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 16e4a5a7cfd7 -r 7894224d264b tools/python/xen/xend/XendBootloader.py
--- a/tools/python/xen/xend/XendBootloader.py   Thu Sep 21 14:56:28 2006 +0100
+++ b/tools/python/xen/xend/XendBootloader.py   Thu Sep 21 14:58:01 2006 +0100
@@ -15,6 +15,7 @@ import os, select, errno
 import os, select, errno
 import random
 import sxp
+import shlex
 
 from XendLogging import log
 from XendError import VmError
@@ -49,7 +50,7 @@ def bootloader(blexec, disk, quiet = 0, 
             args.append("-q")
         args.append("--output=%s" %(fifo,))
         if blargs is not None:
-            args.extend(blargs.split())
+            args.extend(shlex.split(blargs))
         args.append(disk)
 
         try:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.