From: Colin Guthrie Date: Wed, 30 Nov 2011 21:48:26 +0000 (+0000) Subject: Only install files from /etc/ld.so.conf.d/ directory X-Git-Tag: 015~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=482c573d9e87d15632ac16941d03684270854d30;p=thirdparty%2Fdracut.git Only install files from /etc/ld.so.conf.d/ directory When calling inst_simple() it will ignore anything that is not a file, so harden the check done before the calling. --- diff --git a/dracut b/dracut index 8449fc1f8..56c8df347 100755 --- a/dracut +++ b/dracut @@ -712,7 +712,7 @@ done if [[ $kernel_only != yes ]]; then # make sure that library links are correct and up to date for f in /etc/ld.so.conf /etc/ld.so.conf.d/*; do - [[ -e $f ]] && inst_simple "$f" + [[ -f $f ]] && inst_simple "$f" done if ! ldconfig -r "$initdir"; then if [[ $UID = 0 ]]; then