Gitweb:
http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=a2140f35bd8...
Commit: a2140f35bd8cd7b01cbf8c94f9fd7e12b6b59302
Parent: e6d4bcebbb938d17a5a6b31b465922ac1787229e
Author: Ryan McCabe <rmccabe(a)redhat.com>
AuthorDate: Thu Mar 13 13:42:50 2014 -0400
Committer: Ryan McCabe <rmccabe(a)redhat.com>
CommitterDate: Thu Mar 13 13:42:50 2014 -0400
rgmanager: lvm.sh: Prevent shell expansion when calling the find command
Prevent shell expansion of * when calling the find command.
Resolves: rhbz#1020279
Signed-off-by: Ryan McCabe <rmccabe(a)redhat.com>
---
rgmanager/src/resources/lvm.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rgmanager/src/resources/lvm.sh b/rgmanager/src/resources/lvm.sh
index 28cd822..7ad8865 100755
--- a/rgmanager/src/resources/lvm.sh
+++ b/rgmanager/src/resources/lvm.sh
@@ -105,7 +105,7 @@ function ha_lvm_proper_setup_check
# the control of rgmanager
##
# Fixme: we might be able to perform a better check...
- if [ "$(find /boot -name *.img -newer /etc/lvm/lvm.conf)" == "" ];
then
+ if [ "$(find /boot -name '*.img' -newer /etc/lvm/lvm.conf)" ==
"" ]; then
ocf_log err "HA LVM: Improper setup detected"
ocf_log err "- initrd image needs to be newer than lvm.conf"