17 lines
530 B
Diff
17 lines
530 B
Diff
|
diff -r c02cc832cb2d tools/hotplug/Linux/blktap
|
||
|
--- a/tools/hotplug/Linux/blktap Tue Apr 13 18:19:33 2010 +0100
|
||
|
+++ b/tools/hotplug/Linux/blktap Fri Apr 16 14:48:00 2010 -0600
|
||
|
@@ -59,10 +59,10 @@
|
||
|
if [ -n "$t" ]
|
||
|
then
|
||
|
p=$(xenstore_read "$XENBUS_PATH/params")
|
||
|
- # if we have a ':', chew from head including :
|
||
|
+ # if we have a ':', remove everything up to leading '/'
|
||
|
if echo $p | grep -q \:
|
||
|
then
|
||
|
- p=${p#*:}
|
||
|
+ p="/${p#*/}"
|
||
|
fi
|
||
|
fi
|
||
|
# some versions of readlink cannot be passed a regular file
|