Allow space in vbd path name
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 26 May 2010 07:14:51 +0000 (08:14 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 26 May 2010 07:14:51 +0000 (08:14 +0100)
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>
tools/hotplug/Linux/block

index ff85bcb43350c34b972be7b6ee0e7fb9dcd91ec0..122e93e35b35098a30dbae15d66154e1eaee7d1d 100644 (file)
@@ -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"