HA LVM resource script does shell expansion
Issue
In /usr/share/cluster/lvm.sh line 81 when checking for if initrd has been updated the following line is used:
(if [ "$(find /boot -name *.img -newer /etc/lvm/lvm.conf)" == "" ];)
If the current directory contains any files ending with img, the asterisk will be expanded according to path names, which will cause the find to fail due to syntax error.
Environment
- Red Hat Enterprise Linux 5
- rgmanager prior to rgmanager-2.0.52-54
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
