From: Alex Jia Date: Thu, 15 Sep 2011 06:13:28 +0000 (+0800) Subject: sanlock: add missing test command in virt-sanlock-cleanup.in X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e99f01ecb698c6efab4dc4e52c0e7e5d825848a2;p=libvirt.git sanlock: add missing test command in virt-sanlock-cleanup.in * tools/virt-sanlock-cleanup.in: fix missing test command when judging second condition. https://bugzilla.redhat.com/show_bug.cgi?id=738534 Signed-off-by: Alex Jia --- diff --git a/tools/virt-sanlock-cleanup.in b/tools/virt-sanlock-cleanup.in index d8a40a59b1..72cd5e012d 100644 --- a/tools/virt-sanlock-cleanup.in +++ b/tools/virt-sanlock-cleanup.in @@ -29,7 +29,7 @@ cd "$LOCKDIR" || exit 1 for MD5 in * do - if test $MD5 != '*' && $MD5 != $LOCKSPACE ; then + if test $MD5 != '*' && test $MD5 != $LOCKSPACE ; then RESOURCE="$LOCKSPACE:$MD5:$LOCKDIR/$MD5:0" notify -n "Cleanup: $RESOURCE " sanlock client command -r $RESOURCE -c /bin/rm -f "$LOCKDIR/$MD5" 2>/dev/null