Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/plugins


Modified Files:
        evfs_fs_posix.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/plugins/evfs_fs_posix.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- evfs_fs_posix.c     27 Dec 2005 11:44:37 -0000      1.25
+++ evfs_fs_posix.c     28 Dec 2005 11:35:19 -0000      1.26
@@ -51,6 +51,7 @@
        int evfs_file_open(evfs_client* client, evfs_filereference* file);
        int evfs_file_close(evfs_filereference* file);
        int evfs_file_stat(evfs_command* command, struct stat* file_stat);
+       int evfs_file_lstat(evfs_command* command, struct stat* file_stat);
        int evfs_file_seek(evfs_filereference* file, long offset, int whence);
        int evfs_file_read(evfs_client* client, evfs_filereference* file, char* 
bytes, long size);
        int evfs_file_write(evfs_filereference* file, char* bytes, long size);
@@ -93,6 +94,8 @@
                functions->evfs_monitor_start = &evfs_monitor_start;
                functions->evfs_monitor_stop = &evfs_monitor_stop;
                functions->evfs_file_stat = &evfs_file_stat;
+               functions->evfs_file_lstat = &evfs_file_lstat;
+               
                functions->evfs_file_open = &evfs_file_open;
                functions->evfs_file_close = &evfs_file_close;
                functions->evfs_dir_list = &evfs_dir_list;
@@ -324,7 +327,6 @@
        int i;
 
        if (!stat(src, &stat_src)) {
-               printf("Removing file '%s'\n", src);
                return remove(src);
        } else {
                printf("Could not stat..\n");
@@ -340,14 +342,16 @@
 
 
 int evfs_file_stat(evfs_command* command, struct stat* file_stat) {
-
        //printf("Getting file stat...\n");
-
        stat(command->file_command.files[0]->path, file_stat);
-
        //printf("File size: %d\n", file_stat->st_size);
+}
 
-       
+
+int evfs_file_lstat(evfs_command* command, struct stat* file_stat) {
+       //printf("Getting file stat...\n");
+       lstat(command->file_command.files[0]->path, file_stat);
+       //printf("File size: %d\n", file_stat->st_size);
 }
 
 




-------------------------------------------------------
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