[gvfs] smb: Unlink file before sending job reply



commit de923addad07af49a810ad375e124dcb6379da5b
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Thu Oct 31 14:37:09 2013 +0200

    smb: Unlink file before sending job reply

 daemon/gvfsbackendsmb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index 3cad29d..f2d2599 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -1437,10 +1437,10 @@ do_close_write (GVfsBackend *backend,
 
   if (res == -1)
     {
-      g_vfs_job_failed_from_errno (G_VFS_JOB (job), errno);
-      
+      errsv = errno;
       if (handle->tmp_uri)
          smbc_unlink (op_backend->smb_context, handle->tmp_uri);
+      g_vfs_job_failed_from_errno (G_VFS_JOB (job), errsv);
       goto out;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]