[Tomoe-cvs 1428] CVS update: tomoe/lib

Back to archive index

Kouhei Sutou kous****@users*****
2006年 11月 30日 (木) 13:21:54 JST


Index: tomoe/lib/tomoe-module.c
diff -u tomoe/lib/tomoe-module.c:1.4 tomoe/lib/tomoe-module.c:1.5
--- tomoe/lib/tomoe-module.c:1.4	Wed Nov 29 11:53:11 2006
+++ tomoe/lib/tomoe-module.c	Thu Nov 30 13:21:54 2006
@@ -17,7 +17,7 @@
  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  *  Boston, MA  02111-1307  USA
  *
- *  $Id: tomoe-module.c,v 1.4 2006/11/29 02:53:11 kous Exp $
+ *  $Id: tomoe-module.c,v 1.5 2006/11/30 04:21:54 kous Exp $
  */
 
 #include <stdlib.h>
@@ -223,7 +223,8 @@
     TomoeModule *module = NULL;
 
     mod_path = g_module_build_path (base_dir, name);
-    if (g_str_has_suffix (mod_path, G_MODULE_SUFFIX)) {
+    if (g_str_has_suffix (mod_path, G_MODULE_SUFFIX) &&
+        g_file_test (mod_path, G_FILE_TEST_EXISTS)) {
         TomoeModulePrivate *priv;
         module = g_object_new (TOMOE_TYPE_MODULE, NULL);
         priv = TOMOE_MODULE_GET_PRIVATE (module);


tomoe-cvs メーリングリストの案内
Back to archive index