]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Only install files from /etc/ld.so.conf.d/ directory
authorColin Guthrie <colin@mageia.org>
Wed, 30 Nov 2011 21:48:26 +0000 (21:48 +0000)
committerHarald Hoyer <harald@redhat.com>
Mon, 9 Jan 2012 12:26:57 +0000 (13:26 +0100)
When calling inst_simple() it will ignore anything that
is not a file, so harden the check done before the calling.

dracut

diff --git a/dracut b/dracut
index 8449fc1f8dd6cf22f49d89c6048efa95099ca2a2..56c8df347b4db3b8e39cf6b438c55cdd497dcfdd 100755 (executable)
--- 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