]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (find_handle_callback): treat the result of a call
authorVolker Christian <voc@soft.uni-linz.ac.at>
Thu, 10 Jan 2002 20:56:20 +0000 (20:56 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 10 Jan 2002 20:56:20 +0000 (20:56 +0000)
to access(2) correctly when deciding whether a library can be found
in a directory from user_search_path.

ChangeLog
libltdl/ltdl.c

index 4c5b7e261f5d236fff238adbbd8e3b8a0978f0c2..e7f516e035211e2ab8883b54d36bf593f23eb04d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-10  Volker Christian  <voc@soft.uni-linz.ac.at>
+
+       * libltdl/ltdl.c (find_handle_callback): treat the result of a call
+       to access(2) correctly when deciding whether a library can be found
+       in a directory from user_search_path.
+
 2001-11-28  Robert Boehne  <rboehne@ricardo-us.com>
 
        With help from Michael Matz <matz@kde.org>:
index 448bc67cd34ec0e4db9cdd5ad6a7f2bf8f1f2cb5..b277fe91147200d0cab4ce7444dbab4529c52917 100644 (file)
@@ -2275,11 +2275,11 @@ find_handle_callback (filename, data, ignored)
      lt_ptr data;
      lt_ptr ignored;
 {
-  lt_dlhandle  *handle = (lt_dlhandle *) data;
-  int          found   = access (filename, R_OK);
+  lt_dlhandle  *handle         = (lt_dlhandle *) data;
+  int          notfound        = access (filename, R_OK);
 
   /* Bail out if file cannot be read...  */
-  if (!found)
+  if (notfound)
     return 0;
 
   /* Try to dlopen the file, but do not continue searching in any