Enlightenment CVS committal
Author : chaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src/plugins
Modified Files:
filesystem.c
Log Message:
* Bugfix for dynamic file parenting
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/plugins/filesystem.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -3 -r1.67 -r1.68
--- filesystem.c 10 Jun 2006 02:36:14 -0000 1.67
+++ filesystem.c 16 Jul 2006 10:25:36 -0000 1.68
@@ -241,7 +241,7 @@
ecore_list_append(file_list, calling_request);
- folder = data->resp_command.file_command.files[0]->path;
+ /*folder = data->resp_command.file_command.files[0]->path;*/
if (data->file_list.list) {
ecore_list_goto_first (data->file_list.list);
@@ -249,6 +249,11 @@
/*printf("(%s) Received file type for file: %d\n",
ref->path, ref->file_type); */
pos = rindex (ref->path, '/');
+ if (pos - ref->path == 0 && ref->path[0] == '/')
+ folder = strdup("/");
+ else
+ folder = strndup(ref->path, pos - ref->path);
+
filename = strdup (pos + 1);
/*Look for an existing file we have cached */
@@ -312,6 +317,9 @@
/*Add this file to our list */
ecore_list_append (file_list, file);
+
+ /*Free folder*/
+ free(folder);
}
}
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs