1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r20072: make sure WERR_ACCESS_DENIED gets mapped to NT_STATUS_ACCESS_DENIED

metze
(This used to be commit 417f64184e)
This commit is contained in:
Stefan Metzmacher 2006-12-07 20:12:24 +00:00 committed by Gerald (Jerry) Carter
parent 048279b2be
commit be69066736

View File

@ -617,6 +617,11 @@ static const struct {
NTSTATUS ntstatus; NTSTATUS ntstatus;
WERROR werror; WERROR werror;
} ntstatus_to_werror_map[] = { } ntstatus_to_werror_map[] = {
/*
* we add this manualy here, so that W_ERROR(0x5)
* gets mapped to NTSTATUS_ACCESS_DENIED
*/
{NT_STATUS_ACCESS_DENIED, WERR_ACCESS_DENIED},
{NT_STATUS(0x103), W_ERROR(0x3e5)}, {NT_STATUS(0x103), W_ERROR(0x3e5)},
{NT_STATUS(0x105), W_ERROR(0xea)}, {NT_STATUS(0x105), W_ERROR(0xea)},
{NT_STATUS(0x106), W_ERROR(0x514)}, {NT_STATUS(0x106), W_ERROR(0x514)},