From: Volker Christian Date: Fri, 11 Jan 2002 00:25:19 +0000 (+0000) Subject: * libltdl/ltdl.c (find_handle_callback): treat the result of a call X-Git-Tag: release-1-5~138 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc88ff43b14fdd9ef08f87ba67174db0fd8b0967;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 192c3cab8..fe3d57893 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. + 2002-01-07 Robert Boehne * NEWS: Fixed wrong path for texinfo.tex. 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 diff --git a/tests/depdemo-unst.test b/tests/depdemo-unst.test index 5befeb8a3..34d54231b 100755 --- a/tests/depdemo-unst.test +++ b/tests/depdemo-unst.test @@ -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