From: Volker Lendecke Date: Sat, 23 Sep 2023 00:55:55 +0000 (-0700) Subject: libsmb: Remove a call to SMBC_errno() X-Git-Tag: tevent-0.16.0~512 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb8ec33340068dfeaa4cf588d9766dbf954be99e;p=thirdparty%2Fsamba.git libsmb: Remove a call to SMBC_errno() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/libsmb_dir.c b/source3/libsmb/libsmb_dir.c index bf7b8f8b9b5..34d6731b421 100644 --- a/source3/libsmb/libsmb_dir.c +++ b/source3/libsmb/libsmb_dir.c @@ -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,