1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-20 11:21:29 +03:00
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Use
	_dl_cache_libcmp instead of strcmp.
This commit is contained in:
Ulrich Drepper
1999-05-02 18:29:49 +00:00
parent 647361287d
commit 686dfcd106
2 changed files with 9 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
1999-05-02 Ulrich Drepper <drepper@cygnus.com> 1999-05-02 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Use
_dl_cache_libcmp instead of strcmp.
* sysdeps/generic/glob.c (glob_in_dir): It's no error if opendir * sysdeps/generic/glob.c (glob_in_dir): It's no error if opendir
fails on a file. fails on a file.
Reported by Sergei Ivanov <svivanov@pdmi.ras.ru> [PR libc/1032]. Reported by Sergei Ivanov <svivanov@pdmi.ras.ru> [PR libc/1032].

View File

@@ -179,7 +179,9 @@ _dl_load_cache_lookup (const char *name)
using them. */ using them. */
&& cache->libs[middle - 1].key < cachesize - sizeof *cache && cache->libs[middle - 1].key < cachesize - sizeof *cache
/* Actually compare the entry. */ /* Actually compare the entry. */
&& strcmp (name, cache_data + cache->libs[middle - 1].key) == 0) && (_dl_cache_libcmp (name,
cache_data + cache->libs[middle - 1].key)
== 0))
--middle; --middle;
do do
@@ -192,7 +194,9 @@ _dl_load_cache_lookup (const char *name)
index is ok and whether the name matches. Otherwise index is ok and whether the name matches. Otherwise
we are done. */ we are done. */
&& (cache->libs[middle].key >= cachesize - sizeof *cache && (cache->libs[middle].key >= cachesize - sizeof *cache
|| strcmp (name, cache_data + cache->libs[middle].key) != 0)) || (_dl_cache_libcmp (name,
cache_data + cache->libs[middle].key)
!= 0)))
break; break;
flags = cache->libs[middle].flags; flags = cache->libs[middle].flags;