1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

libsmb: Remove a call to SMBC_errno()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2023-09-22 17:55:55 -07:00 committed by Jeremy Allison
parent 9ec7245b1b
commit bb8ec33340

View File

@ -2452,9 +2452,9 @@ SMBC_rename_ctx(SMBCCTX *ocontext,
return -1;
}
if (!NT_STATUS_IS_OK(
cli_rename(targetcli1, targetpath1, targetpath2, false))) {
int eno = SMBC_errno(ocontext, targetcli1);
status = cli_rename(targetcli1, targetpath1, targetpath2, false);
if (!NT_STATUS_IS_OK(status)) {
int eno = cli_status_to_errno(status);
if (eno != EEXIST ||
!NT_STATUS_IS_OK(cli_unlink(targetcli1, targetpath2,