to access(2) correctly when deciding whether a library can be found
in a directory from user_search_path.
+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>:
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