[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend: fix insufficient quoting in tapdisk
# HG changeset patch # User Philipp Hahn <hahn@xxxxxxxxxxxxx> # Date 1323364516 0 # Node ID 1c58bb664d8d55e475d179cb5f81693991859fc8 # Parent 37c83706e0744a319fff61900b245ad8226c108f 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@xxxxxxxxxxxxx> --- diff -r 37c83706e074 -r 1c58bb664d8d tools/python/xen/xend/server/BlktapController.py --- a/tools/python/xen/xend/server/BlktapController.py Thu Dec 08 16:55:00 2011 +0000 +++ b/tools/python/xen/xend/server/BlktapController.py Thu Dec 08 17:15:16 2011 +0000 @@ -253,7 +253,7 @@ 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 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |