aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-26 08:28:56 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-26 08:28:56 +0100
commit1a830511d1fd8e0a59912e2b4bbd972421cfbcd2 (patch)
treedba22bd5b3ecb47f1306b35a401ae41c17ad972e
parent6a90a4f0a328c5cceeb8496719193a7966169fe5 (diff)
downloadxen-1a830511d1fd8e0a59912e2b4bbd972421cfbcd2.tar.gz
xen-1a830511d1fd8e0a59912e2b4bbd972421cfbcd2.tar.bz2
xen-1a830511d1fd8e0a59912e2b4bbd972421cfbcd2.zip
Allow space in vbd path name
c/s 20393 breaks existing domain configuration that contains spaces in the vbd path name. Fixed by this trivial patch which provides missing quotes. Signed-off-by: Jim Fehlig <jfehlig@novell.com> xen-unstable changeset: 21459:611a36481e92 xen-unstable date: Wed May 26 08:14:51 2010 +0100
-rw-r--r--tools/hotplug/Linux/block4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hotplug/Linux/block b/tools/hotplug/Linux/block
index ff85bcb433..122e93e35b 100644
--- a/tools/hotplug/Linux/block
+++ b/tools/hotplug/Linux/block
@@ -272,8 +272,8 @@ mount it read-write in a guest domain."
if [ "x$mode" != 'x!' ]
then
- inode=$(stat -c '%i' $file)
- dev=$(stat -c '%D' $file)
+ inode=$(stat -c '%i' "$file")
+ dev=$(stat -c '%D' "$file")
if [ -z "$inode" ] || [ -z "$dev" ]
then
fatal "Unable to lookup $file: dev: $dev inode: $inode"