]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:vfs_crossrename: crossrename_renameat() needs to return 0 if copy_reg() is successful
authorPavel Filipenský <pfilipensky@samba.org>
Thu, 28 Nov 2024 17:32:25 +0000 (18:32 +0100)
committerPavel Filipensky <pfilipensky@samba.org>
Tue, 17 Dec 2024 10:27:34 +0000 (10:27 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15724

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_crossrename.c

index c260bdee1948be83790792a99613adb2b40c1fcf..5c6006931864c46d20b6010dd1c194884c252eb5 100644 (file)
@@ -213,6 +213,7 @@ static int crossrename_renameat(vfs_handle_struct *handle,
                                           smb_fname_src,
                                           dstfsp,
                                           smb_fname_dst);
+               result = 0;
                if (!NT_STATUS_IS_OK(status)) {
                        errno = map_errno_from_nt_status(status);
                        result = -1;