diff -r 3057f813da14 tools/examples/block --- a/tools/examples/block Thu Nov 29 19:30:33 2007 +0000 +++ b/tools/examples/block Wed Dec 05 22:57:56 2007 +0900 @@ -219,7 +219,8 @@ case "$command" in file) # Canonicalise the file, for sharing check comparison, and the mode # for ease of use here. - file=$(readlink -f "$p") || fatal "$p does not exist." + test -f "$p" || fatal "$p does not exist." + file=$(readlink -f "$p") mode=$(canonicalise_mode "$mode") claim_lock "block"