Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/plugins/file


Modified Files:
        evfs_fs_trash.c 


Log Message:
* Sanity updates

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_trash.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evfs_fs_trash.c     15 Aug 2006 12:04:32 -0000      1.4
+++ evfs_fs_trash.c     18 Aug 2006 02:45:24 -0000      1.5
@@ -52,7 +52,7 @@
 static char* next_trash_path;
 static char evfs_fs_trash_info[PATH_MAX];
 static char evfs_fs_trash_files[PATH_MAX];
-static evfs_plugin* posix_plugin;
+evfs_plugin* posix_plugin;
 
 /*Main file wrappers */
 int evfs_file_remove(char *src);
@@ -195,10 +195,13 @@
 evfs_file_stat(evfs_command * command, struct stat *file_stat, int file_number)
 {
        evfs_filereference* ref = command->file_command.files[file_number];
+
+       printf("Performing stat on: '%s'\n", ref->path);
        
        /*FIXME - if we're asking for the root - it's a directory*/
        if (!strcmp(ref->path, "/")) {
-               file_stat->st_mode |= S_IFDIR;
+               memset(file_stat, sizeof(struct stat), 0);
+               file_stat->st_mode = S_IFDIR;
                return EVFS_SUCCESS;
        } else {
                if (ref->attach) {
@@ -313,6 +316,9 @@
 
        free(next_trash_file);
        free(next_trash_path);
+
+       next_trash_file = NULL;
+       next_trash_path = NULL;
        
        return file->fd;
 }



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