Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/bin


Modified Files:
        evfs_server_handle.c 


Log Message:
* More valgrinding, special case handling

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/bin/evfs_server_handle.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -3 -r1.70 -r1.71
--- evfs_server_handle.c        19 Aug 2006 02:58:06 -0000      1.70
+++ evfs_server_handle.c        19 Aug 2006 03:16:00 -0000      1.71
@@ -459,7 +459,8 @@
                        printf("Dest is a dir: %s\n", 
command->file_command.files[num_files-1]->path);
                        printf("Res: %d\n", res);
                } else {
-                       printf("Dest not a dir: %s://%s\n",  
command->file_command.files[num_files-1]->plugin_uri, 
command->file_command.files[num_files-1]->path);
+                       printf("Dest not a dir: %s://%s\n",  
command->file_command.files[num_files-1]->plugin_uri,
+                               command->file_command.files[num_files-1]->path);
                        printf("Res: %d\n", res);
                }*/
 
@@ -508,6 +509,8 @@
                                  file_stat);
                          }
 
+                         printf("Rewritten destination: '%s'\n", 
rewrite_dest->path);
+
                  } else {
                     Ecore_List *directory_list = NULL;
                     int newlen;
@@ -525,8 +528,14 @@
                             newlen = 
strlen(newdir_rewrite->path)+1+strlen(pos+1)+1;
                             printf("Newlen is: %d\n", newlen);
                             newdir_rewrite->path = 
realloc(newdir_rewrite->path, newlen);
-                            newdir_rewrite->path[origlen] = '/';
-                            strncat(&newdir_rewrite->path[origlen+1], pos+1, 
strlen(pos)-1);
+                           
+                            /*Handle the root dir*/
+                            if (strcmp(newdir_rewrite->path, "/")) {
+                                    newdir_rewrite->path[origlen] = '/';
+                                    strncat(&newdir_rewrite->path[origlen+1], 
pos+1, strlen(pos)-1);
+                            } else {
+                                    strncat(&newdir_rewrite->path[origlen], 
pos+1, strlen(pos)-1);
+                            }
                     }
                     
 



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to