mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
s3:vfs_crossrename: crossrename_renameat() needs to return 0 if copy_reg() is successful
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> (cherry picked from commit 0a9adc85e77bc557bb8be12237fa31c4142dd3d5)
This commit is contained in:
parent
197578b4d6
commit
fac7288aff
@ -211,6 +211,7 @@ static int crossrename_renameat(vfs_handle_struct *handle,
|
|||||||
smb_fname_src,
|
smb_fname_src,
|
||||||
dstfsp,
|
dstfsp,
|
||||||
smb_fname_dst);
|
smb_fname_dst);
|
||||||
|
result = 0;
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
errno = map_errno_from_nt_status(status);
|
errno = map_errno_from_nt_status(status);
|
||||||
result = -1;
|
result = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user