Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/plugins


Modified Files:
        evfs_fs_samba.c 


Log Message:
* Make the samba plugin fix the spec

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/evfs_fs_samba.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- evfs_fs_samba.c     3 Feb 2006 23:12:13 -0000       1.31
+++ evfs_fs_samba.c     12 Mar 2006 06:32:25 -0000      1.32
@@ -464,7 +464,7 @@
    i = smb_context->write(smb_context, file->fd_p, bytes, size);
    /*printf("Wrote %d bytes\n", i); */
 
-   return 0;
+   return i;
 }
 
 int
@@ -499,7 +499,7 @@
 
    snprintf(dir_path, 1024, "smb:/%s", file->path);
 
-   printf("SMB File create: %s\n", dir_path);
+   /*printf("SMB File create: %s\n", dir_path);*/
 
    file->fd_p =
       smb_context->open(smb_context, dir_path, O_CREAT | O_TRUNC | O_RDWR,
@@ -512,6 +512,14 @@
 {
    char dir_path[1024];
 
+   /*Does this command have an attached authentication object? */
+   if (file->username)
+     {
+        printf("We have a username, adding to hash..\n");
+        evfs_auth_structure_add(auth_cache, file->username, file->password,
+                                file->path);
+     }
+
    snprintf(dir_path, 1024, "smb:/%s", file->path);
 
    printf("SMB File mkdir: %s\n", dir_path);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to