[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-2517-g71641f0

Volker Lendecke vl at samba.org
Mon Feb 25 12:01:35 GMT 2008


The branch, v3-2-test has been updated
       via  71641f04d4e9a41775e898f2e4ac3c8792783cd3 (commit)
      from  4a1a138b0fe0f2200e5a37a0609481e4340a896c (commit)

http://gitweb.samba.org/?samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 71641f04d4e9a41775e898f2e4ac3c8792783cd3
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Feb 25 13:00:24 2008 +0100

    Correctly check return of rename(2)
    
    Bug 5279 -- Thanks to Max Matveev

-----------------------------------------------------------------------

Summary of changes:
 source/modules/vfs_default.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/modules/vfs_default.c b/source/modules/vfs_default.c
index cf135df..31ebb63 100644
--- a/source/modules/vfs_default.c
+++ b/source/modules/vfs_default.c
@@ -468,7 +468,7 @@ static int vfswrap_rename(vfs_handle_struct *handle,  const char *oldname, const
 
 	START_PROFILE(syscall_rename);
 	result = rename(oldname, newname);
-	if (errno == EXDEV) {
+	if ((result == -1) && (errno == EXDEV)) {
 		/* Rename across filesystems needed. */
 		result = copy_reg(oldname, newname);
 	}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list