as a last resort, if we can't access() the module, leave it up to the

Mon May 28 20:19:25 2001  Tim Janik  <timj@gtk.org>

        * gmodule.c (g_module_open): as a last resort, if we can't access()
        the module, leave it up to the platform backends to find it.
        (fixes implicit search patch loading i broke with my last
        commit, spotted by Padraig O'Briain).
This commit is contained in:
Tim Janik 2001-05-28 18:23:31 +00:00 committed by Tim Janik
parent 1b1bbd0ddc
commit 2d0ea4af6c
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,10 @@
Mon May 28 20:19:25 2001 Tim Janik <timj@gtk.org>
* gmodule.c (g_module_open): as a last resort, if we can't access()
the module, leave it up to the platform backends to find it.
(fixes implicit search patch loading i broke with my last
commit, spotted by Padraig O'Briain).
Thu May 24 03:43:12 2001 Tim Janik <timj@gtk.org> Thu May 24 03:43:12 2001 Tim Janik <timj@gtk.org>
* gmodule.c (g_module_open): reordered code so we have a single * gmodule.c (g_module_open): reordered code so we have a single

View File

@ -343,7 +343,7 @@ g_module_open (const gchar *file_name,
name = NULL; name = NULL;
} }
} }
/* last resort, try appending libtool suffix */ /* try completing by appending libtool suffix */
if (!name) if (!name)
{ {
name = g_strconcat (file_name, ".la"); name = g_strconcat (file_name, ".la");
@ -353,6 +353,11 @@ g_module_open (const gchar *file_name,
name = NULL; name = NULL;
} }
} }
/* we can't access() the file, lets hope the platform backends finds
* it via library paths
*/
if (!name)
name = g_strdup (file_name);
/* ok, try loading the module */ /* ok, try loading the module */
if (name) if (name)