Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : apps/evfs

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


Modified Files:
        evfs_fs_samba.c 


Log Message:
* Now we're doing more error checking, we have to be more strict about return 
codes from plugin functions

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_samba.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- evfs_fs_samba.c     13 Sep 2006 10:04:27 -0000      1.9
+++ evfs_fs_samba.c     17 Sep 2006 09:15:07 -0000      1.10
@@ -496,7 +496,11 @@
    file->fd_p =
       smb_context->open(smb_context, dir_path, O_CREAT | O_TRUNC | O_RDWR,
                         S_IRUSR | S_IWUSR);
-   return 0;
+   if (file->fd_p) {
+          file->fd = smb_fd_get_next(file->fd_p);
+          return file->fd;
+   } else
+          return 0;
 }
 
 int



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