Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/bin
Modified Files:
evfs_main.c
Log Message:
Complain if plugin directory does not exist
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_main.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- evfs_main.c 16 Aug 2005 07:31:39 -0000 1.5
+++ evfs_main.c 16 Aug 2005 07:53:30 -0000 1.6
@@ -224,14 +224,19 @@
printf("Reading plugins from: %s\n", PACKAGE_PLUGIN_DIR
"/plugins/file");
dir = opendir(PACKAGE_PLUGIN_DIR "/plugins/file");
- while ( (de = readdir(dir)) ) {
+ if (dir) {
+ while ( (de = readdir(dir)) ) {
- if (!strncmp(de->d_name + strlen(de->d_name) -3, ".so", 3)) {
+ if (!strncmp(de->d_name + strlen(de->d_name) -3, ".so", 3)) {
snprintf(plugin_path, 1024,"%s/%s", PACKAGE_PLUGIN_DIR
"/plugins/file", de->d_name);
if ( (plugin = evfs_load_plugin(plugin_path))) {
ecore_hash_set(server->plugin_uri_hash,
plugin->uri, plugin);
}
+ }
}
+ } else {
+ printf(stderr, "EVFS: Could not location plugin directory
'%s'\n", PACKAGE_PLUGIN_DIR "/plugins/file");
+ exit(1);
}
}
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs