summaryrefslogtreecommitdiff
path: root/elf/ldconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/ldconfig.c')
-rw-r--r--elf/ldconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/ldconfig.c b/elf/ldconfig.c
index 3963627aa0..795fe6374f 100644
--- a/elf/ldconfig.c
+++ b/elf/ldconfig.c
@@ -694,6 +694,8 @@ search_dir (const struct dir_entry *entry)
!is_hwcap_platform (direntry->d_name)))
continue;
len = strlen (direntry->d_name);
+ /* Skip temporary files created by the prelink program. Files with
+ names like these are never really DSOs we want to look at. */
if (len >= sizeof (".#prelink#") - 1)
{
if (strcmp (direntry->d_name + len - sizeof (".#prelink#") + 1,