Blame 0016-Only-install-files-from-etc-ld.so.conf.d-directory.patch

Harald Hoyer 3957aa
From 482c573d9e87d15632ac16941d03684270854d30 Mon Sep 17 00:00:00 2001
Harald Hoyer 3957aa
From: Colin Guthrie <colin@mageia.org>
Harald Hoyer 3957aa
Date: Wed, 30 Nov 2011 21:48:26 +0000
Harald Hoyer 3957aa
Subject: [PATCH] Only install files from /etc/ld.so.conf.d/ directory
Harald Hoyer 3957aa
Harald Hoyer 3957aa
When calling inst_simple() it will ignore anything that
Harald Hoyer 3957aa
is not a file, so harden the check done before the calling.
Harald Hoyer 3957aa
---
Harald Hoyer 3957aa
 dracut |    2 +-
Harald Hoyer 3957aa
 1 files changed, 1 insertions(+), 1 deletions(-)
Harald Hoyer 3957aa
Harald Hoyer 3957aa
diff --git a/dracut b/dracut
Harald Hoyer 3957aa
index 8449fc1..56c8df3 100755
Harald Hoyer 3957aa
--- a/dracut
Harald Hoyer 3957aa
+++ b/dracut
Harald Hoyer 3957aa
@@ -712,7 +712,7 @@ done
Harald Hoyer 3957aa
 if [[ $kernel_only != yes ]]; then
Harald Hoyer 3957aa
     # make sure that library links are correct and up to date
Harald Hoyer 3957aa
     for f in /etc/ld.so.conf /etc/ld.so.conf.d/*; do
Harald Hoyer 3957aa
-        [[ -e $f ]] && inst_simple "$f"
Harald Hoyer 3957aa
+        [[ -f $f ]] && inst_simple "$f"
Harald Hoyer 3957aa
     done
Harald Hoyer 3957aa
     if ! ldconfig -r "$initdir"; then
Harald Hoyer 3957aa
         if [[ $UID = 0 ]]; then