From: Volker Christian Date: Thu, 10 Jan 2002 20:56:20 +0000 (+0000) Subject: * libltdl/ltdl.c (find_handle_callback): treat the result of a call X-Git-Tag: release-1-4-3~31 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=bb392876905bcf8e2e0bfb7c2c2a23e93cdc0afc;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 4c5b7e261..e7f516e03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-01-10 Volker Christian + + * 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 With help from Michael Matz : diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 448bc67cd..b277fe911 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -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