[libvirt] [PATCH] sanlock: add missing test command in virt-sanlock-cleanup.in

From: Alex Jia <ajia@redhat.com> * 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 <ajia@redhat.com> --- tools/virt-sanlock-cleanup.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/virt-sanlock-cleanup.in b/tools/virt-sanlock-cleanup.in index d8a40a5..72cd5e0 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 -- 1.7.1

On 09/15/2011 12:13 AM, ajia@redhat.com wrote:
From: Alex Jia<ajia@redhat.com>
* 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<ajia@redhat.com> --- tools/virt-sanlock-cleanup.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/virt-sanlock-cleanup.in b/tools/virt-sanlock-cleanup.in index d8a40a5..72cd5e0 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
ACK and pushed. /me hides head for missing this on my first review of this file :) -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (2)
-
ajia@redhat.com
-
Eric Blake