]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 2 May 1999 18:29:49 +0000 (18:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 2 May 1999 18:29:49 +0000 (18:29 +0000)
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Use
_dl_cache_libcmp instead of strcmp.

ChangeLog
sysdeps/generic/dl-cache.c

index 3d1cf99d553facbd0cccc3355fda816262be9b24..bbd9700a6287a9067201575c35b03062c97aadaa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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
        fails on a file.
        Reported by Sergei Ivanov <svivanov@pdmi.ras.ru> [PR libc/1032].
index ee7080bc8e6936c5b2db991c1076019537016d11..582afb51c3d2f3264dcda8421e5b338ecd05d95e 100644 (file)
@@ -179,7 +179,9 @@ _dl_load_cache_lookup (const char *name)
                 using them.  */
             && cache->libs[middle - 1].key < cachesize - sizeof *cache
             /* 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;
 
       do
@@ -192,7 +194,9 @@ _dl_load_cache_lookup (const char *name)
                 index is ok and whether the name matches.  Otherwise
                 we are done.  */
              && (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;
 
          flags = cache->libs[middle].flags;