]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (try_dlopen): Use `attempt' rather than
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 5 Aug 2007 11:06:14 +0000 (11:06 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 5 Aug 2007 11:06:14 +0000 (11:06 +0000)
`filename', as the former has the needed extension when called
by lt_dlopenext.
Report by Brian Barrett.

ChangeLog
libltdl/ltdl.c

index 4f21bb15a72836a047bd0e49838b66c5fbe1f128..cf09b171232c75b3e0f2eb8af582acee09d338be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/ltdl.c (try_dlopen): Use `attempt' rather than
+       `filename', as the former has the needed extension when called
+       by lt_dlopenext.
+       Report by Brian Barrett.
+
 2007-07-27  Peter Rosin  <peda@lysator.liu.se>
 
        * Makefile.am: Pass STRIP through to the testsuite, so that
index a3cf6e3c7b100b84b53969012d22ba90040bc647..41e9f07996a08ee93aeb529cc796c3c521635fc0 100644 (file)
@@ -1255,7 +1255,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext,
            }
          newhandle = *phandle;
 
-         if (tryall_dlopen (&newhandle, filename, advise, vtable) == 0)
+         if (tryall_dlopen (&newhandle, attempt, advise, vtable) == 0)
            {
              goto register_handle;
            }
@@ -1317,7 +1317,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext,
        }
       if (!file)
        {
-         file = fopen (filename, LT_READTEXT_MODE);
+         file = fopen (attempt, LT_READTEXT_MODE);
        }
 
       /* If we didn't find the file by now, it really isn't there.  Set
@@ -1415,7 +1415,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext,
 #endif
                   )))
        {
-         if (tryall_dlopen (&newhandle, filename, advise, 0) != 0)
+         if (tryall_dlopen (&newhandle, attempt, advise, 0) != 0)
            {
              newhandle = NULL;
            }