errors early so that file_not_found() can detect what happened.
+2002-07-16 Gary V. Vaughan <gary@gnu.org>
+
+ * libltdl/ltdl.c (tryall_dlopen): We need to catch missing file
+ errors early so that file_not_found() can detect what happened.
+
2002-06-26 Bob Friesenhahn <bfreisen@simple.dallas.tx.us>
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [mingw]: Remove
cur = *handle;
if (filename)
{
+ /* We need to catch missing file errors early so that
+ file_not_found() can detect what happened. */
+ if (access (filename, R_OK) != 0)
+ {
+ LT_DLMUTEX_SETERROR (LT_DLSTRERROR (FILE_NOT_FOUND));
+ ++errors;
+ goto done;
+ }
+
cur->info.filename = lt_estrdup (filename);
if (!cur->info.filename)
{