as a last resort, if we can't access() the module, leave it up to the
authorTim Janik <timj@gtk.org>
Mon, 28 May 2001 18:23:31 +0000 (18:23 +0000)
committerTim Janik <timj@src.gnome.org>
Mon, 28 May 2001 18:23:31 +0000 (18:23 +0000)
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).

gmodule/ChangeLog
gmodule/gmodule.c

index 15e629e..7c6d0ae 100644 (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>
 
        * gmodule.c (g_module_open): reordered code so we have a single
index 49cadf9..ba2d13c 100644 (file)
@@ -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)