Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/bin


Modified Files:
        evfs_server_handle.c 


Log Message:
* Oops - we *certainly* don't want to recurse through symbolic links to 
directories when doing recursive delete.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_server_handle.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- evfs_server_handle.c        28 Dec 2005 05:16:10 -0000      1.27
+++ evfs_server_handle.c        28 Dec 2005 11:35:18 -0000      1.28
@@ -103,23 +103,23 @@
 void evfs_handle_file_remove_command(evfs_client* client, evfs_command* 
command) {
        struct stat file_stat;
        
-       printf("At remove handle\n");
+       //printf("At remove handle for %s\n", 
command->file_command.files[0]->path );
 
        evfs_plugin* plugin = evfs_get_plugin_for_uri(client->server, 
command->file_command.files[0]->plugin_uri);
        if (plugin) {
-               (*plugin->functions->evfs_file_stat)(command, &file_stat);
-               printf("ST_MODE: %d\n", file_stat.st_mode);
+               (*plugin->functions->evfs_file_lstat)(command, &file_stat);
+               //printf("ST_MODE: %d\n", file_stat.st_mode);
                
-               printf("Pointer here: %p\n", 
plugin->functions->evfs_file_remove);
+               //printf("Pointer here: %p\n", 
plugin->functions->evfs_file_remove);
 
                /*If we're not a dir, simple remove command*/
                if (!S_ISDIR(file_stat.st_mode)) { 
                        
-                       
//(*plugin->functions->evfs_file_remove)(command->file_command.files[0]->path);
-                       printf("REMOVE FIL: '%s'\n", 
command->file_command.files[0]->path);
+                       
(*plugin->functions->evfs_file_remove)(command->file_command.files[0]->path);
+                       //printf("REMOVE FIL: '%s'\n", 
command->file_command.files[0]->path);
 
                } else {
-                       printf("IS LINK RES: %d, for %s\n", 
S_ISLNK(file_stat.st_mode), command->file_command.files[0]->path);
+                       //printf("IS LINK RES: %d, for %s\n", 
S_ISLNK(file_stat.st_mode), command->file_command.files[0]->path);
                
                        if (!S_ISLNK(file_stat.st_mode)) {
                        
@@ -144,15 +144,15 @@
                                        }
                                }
 
-                               printf("REMOVE DIR: '%s'\n", 
command->file_command.files[0]->path);
-                               
//(*plugin->functions->evfs_file_remove)(command->file_command.files[0]->path);
+                               //printf("REMOVE DIR: '%s'\n", 
command->file_command.files[0]->path);
+                               
(*plugin->functions->evfs_file_remove)(command->file_command.files[0]->path);
                        } else {
-                               printf("Not recursing - LINK directory!\n");
+                               //printf("Not recursing - LINK directory!\n");
                        }
 
 
                }
-       }
+       } else { printf ("No plugin!\n"); }
 }
 
 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to