libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

detection of existence of file


From: Volker Christian
Subject: detection of existence of file
Date: Sat, 15 Dec 2001 21:11:16 +0100

This patch fixes a small bug which prefents libltdl to dl_open a
library located in a path specified in user_search_path.

regards
voc


2001-12-15  Volker Christian  <address@hidden>

        * ltdl.c: find_handle_callback(...) hasn´t detected the existence of
        files.

Index: libltdl/ltdl.c
=======================================================================
diff -ur libtool-1.4.2.orig/libltdl/ltdl.c libtool-1.4.2/libltdl/ltdl.c
--- libtool-1.4.2.orig/libltdl/ltdl.c   Tue Sep 11 04:02:07 2001
+++ libtool-1.4.2/libltdl/ltdl.c        Sat Dec 15 20:37:15 2001
@@ -2250,10 +2250,10 @@
      lt_ptr ignored;
 {
   lt_dlhandle  *handle = (lt_dlhandle *) data;
-  int          found   = access (filename, R_OK);
+  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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]