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

s3:locking: let fsp_update_share_mode_flags() log all errors at level 0

These should never fail without notice, share_mode_do_locked() should
never fail with NT_STATUS_NOT_FOUND for an existing fsp.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher 2022-09-10 20:39:19 +02:00 committed by Jeremy Allison
parent c61a375f14
commit 3e5775084a

View File

@ -238,14 +238,14 @@ static NTSTATUS fsp_update_share_mode_flags(struct files_struct *fsp)
status = share_mode_do_locked(
fsp->file_id, fsp_update_share_mode_flags_fn, &state);
if (!NT_STATUS_IS_OK(status)) {
DBG_DEBUG("share_mode_do_locked returned %s\n",
nt_errstr(status));
DBG_ERR("share_mode_do_locked returned %s\n",
nt_errstr(status));
return status;
}
if (!NDR_ERR_CODE_IS_SUCCESS(state.ndr_err)) {
DBG_DEBUG("get_share_mode_blob_header returned %s\n",
ndr_errstr(state.ndr_err));
DBG_ERR("get_share_mode_blob_header returned %s\n",
ndr_errstr(state.ndr_err));
return ndr_map_error2ntstatus(state.ndr_err);
}