From 2d0ea4af6c80cd988666bb4043965f270ea7fc07 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Mon, 28 May 2001 18:23:31 +0000 Subject: [PATCH] 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 * 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). --- gmodule/ChangeLog | 7 +++++++ gmodule/gmodule.c | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gmodule/ChangeLog b/gmodule/ChangeLog index 15e629e5f..7c6d0ae69 100644 --- a/gmodule/ChangeLog +++ b/gmodule/ChangeLog @@ -1,3 +1,10 @@ +Mon May 28 20:19:25 2001 Tim Janik + + * 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 * gmodule.c (g_module_open): reordered code so we have a single diff --git a/gmodule/gmodule.c b/gmodule/gmodule.c index 49cadf95a..ba2d13c47 100644 --- a/gmodule/gmodule.c +++ b/gmodule/gmodule.c @@ -343,7 +343,7 @@ g_module_open (const gchar *file_name, name = NULL; } } - /* last resort, try appending libtool suffix */ + /* try completing by appending libtool suffix */ if (!name) { name = g_strconcat (file_name, ".la"); @@ -353,6 +353,11 @@ g_module_open (const gchar *file_name, 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 */ if (name)