From 2fe98a4ae7dadec3aa4dfed4fe041aacfa641de9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 26 Aug 2003 08:08:21 +0000 Subject: Update. 2003-08-26 Jakub Jelinek * elf/ldconfig.c (search_dir): When checking for GNU-style .so link file use the real file name, not the resolved name we got by following the symlinks. --- elf/ldconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf/ldconfig.c') diff --git a/elf/ldconfig.c b/elf/ldconfig.c index 64c4f64..3c348c9 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -793,7 +793,7 @@ search_dir (const struct dir_entry *entry) { /* If the path the link points to isn't its soname and it is not .so symlink for ld(1) only, we treat it as a normal file. */ - char *real_base_name = basename (real_name); + const char *real_base_name = basename (real_file_name); if (strcmp (real_base_name, soname) != 0) { -- cgit v1.1