The functions 'brl_lock_windows_default' and 'brl_lock_posix' uses
explicit 'errno_ret' value to avoid possible errno overwrite. Use in
failure case.
Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Shwetha Acharya <Shwetha.K.Acharya@ibm.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Tue Apr 21 02:05:57 UTC 2026 on atb-devel-224
status = NT_STATUS_LOCK_NOT_GRANTED;
goto fail;
} else {
- status = map_nt_error_from_unix(errno);
+ status = map_nt_error_from_unix(errno_ret);
goto fail;
}
}
goto fail;
} else {
TALLOC_FREE(tp);
- status = map_nt_error_from_unix(errno);
+ status = map_nt_error_from_unix(errno_ret);
goto fail;
}
}