diff options
author | Philipp Hahn <hahn@univention.de> | 2011-12-08 17:15:16 +0000 |
---|---|---|
committer | Philipp Hahn <hahn@univention.de> | 2011-12-08 17:15:16 +0000 |
commit | 7351bdf240e2305bd40f8156b9b6bf6ccaec27c2 (patch) | |
tree | b4b72121039b288dfc04409b2bbc9ae0102fc5f6 /tools/python/xen | |
parent | e68ffca28b60eb8f4f17cf4599cac81e34d696f0 (diff) | |
download | xen-7351bdf240e2305bd40f8156b9b6bf6ccaec27c2.tar.gz xen-7351bdf240e2305bd40f8156b9b6bf6ccaec27c2.tar.bz2 xen-7351bdf240e2305bd40f8156b9b6bf6ccaec27c2.zip |
xend: fix insufficient quoting in tapdisk
Fix insufficient quoting between "tap-ctl list" and
xend/server/BlktapController.py
The "line.split(None, 4)" needs to be a "3", because 3 splits needs to
be done to get the 4 parts. Sorry for the mixup.
[ fix to 24335:3915bd95ade5. -iwj ]
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/python/xen')
-rw-r--r-- | tools/python/xen/xend/server/BlktapController.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/server/BlktapController.py b/tools/python/xen/xend/server/BlktapController.py index 51647e2d92..60079ebe81 100644 --- a/tools/python/xen/xend/server/BlktapController.py +++ b/tools/python/xen/xend/server/BlktapController.py @@ -253,7 +253,7 @@ class TapdiskController(object): tapdisk = TapdiskController.Tapdisk() # Since 'tap-ctl list' does not escape blanks in the path, hard-code the current format using 4 pairs to prevent splitting the path - for pair in line.split(None, 4): + for pair in line.split(None, 3): key, value = pair.split('=', 1) if key == 'pid': tapdisk.pid = value |