]> 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>
Fri, 11 Jan 2002 00:25:19 +0000 (00:25 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 11 Jan 2002 00:25:19 +0000 (00:25 +0000)
to access(2) correctly when deciding whether a library can be found
in a directory from user_search_path.

ChangeLog
libltdl/ltdl.c
tests/depdemo-unst.test

index 192c3cab84bb8bb8bc1f17536de010cb916c54eb..fe3d578933354ae6e5233ea70c9baa5e876cde3d 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.
+
 2002-01-07  Robert Boehne  <rboehne@ricardo-us.com>
 
        * NEWS: Fixed wrong path for texinfo.tex.
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
index 5befeb8a35e2473686ef0ed8d068270f3cc560bd..34d54231b0b44c0f66ce01972b7ada37e262a491 100755 (executable)
@@ -26,6 +26,7 @@ leftovers=`find $prefix ! -type d ! -name '.*' -print`
 if test -n "$leftovers"; then
   echo "= Leftover after make uninstall:"
   ls -l $leftovers
+  ls -l $leftovers > ~/devel/savannah/arse
   exit 1
 fi