summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-07 20:12:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:59 -0500
commitbe69066736c23f40d9131e608ead94874208da05 (patch)
tree494cace736569a90b0d7c309dec387662fe0b4be
parent048279b2beb2141bcc69ac58a584880abc0f8075 (diff)
downloadsamba-be69066736c23f40d9131e608ead94874208da05.tar.gz
samba-be69066736c23f40d9131e608ead94874208da05.tar.bz2
samba-be69066736c23f40d9131e608ead94874208da05.zip
r20072: make sure WERR_ACCESS_DENIED gets mapped to NT_STATUS_ACCESS_DENIED
metze (This used to be commit 417f64184e734ab4ce5c78dc3d268c5c4a2cd18d)
-rw-r--r--source4/libcli/util/errormap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c
index 1e90969f95..ff6acf9dd9 100644
--- a/source4/libcli/util/errormap.c
+++ b/source4/libcli/util/errormap.c
@@ -617,6 +617,11 @@ static const struct {
NTSTATUS ntstatus;
WERROR werror;
} 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(0x105), W_ERROR(0xea)},
{NT_STATUS(0x106), W_ERROR(0x514)},