* 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.
This commit is contained in:
Ralf Wildenhues 2007-08-05 11:06:14 +00:00
parent 8b8688e3ee
commit 2e54f75846
2 changed files with 10 additions and 3 deletions

View File

@ -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

View 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;
}