Fix blktap script for versions of readlink command that do not handle

regular files.
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: Josh Nicholas <jnicholas@virtualiron.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-08-31 11:10:21 +01:00
1 parent c028cc106a
commit c0e85ece47
1 file changed
+7 -1
+7 -1
View File
@@ -69,7 +69,13 @@ then
p=${p#*:}
fi
fi
file=$(readlink -f "$p") || ebusy "$p does not exist."
# some versions of readlink cannot be passed a regular file
if [ -L "$p" ]; then
file=$(readlink -f "$p") || ebusy "$p link does not exist."
else
[ -f "$p" ] || { ebusy "$p file does not exist." }
file="$p"
fi
if [ "$mode" != '!' ]
then
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.