summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-09-04 20:23:39 +0200
committerGünther Deschner <gd@samba.org>2008-09-05 12:32:56 +0200
commit7850c90d2d3c38a7b22e63d3d85e0bd31af1620d (patch)
tree796b3f76d13898b0375ffb046190c8cfb1362140
parent60255c3b2e557a233011ea02c761faee0dd3bc7f (diff)
downloadsamba-7850c90d2d3c38a7b22e63d3d85e0bd31af1620d.tar.gz
samba-7850c90d2d3c38a7b22e63d3d85e0bd31af1620d.tar.bz2
samba-7850c90d2d3c38a7b22e63d3d85e0bd31af1620d.zip
netapi: fix return code in NetShareAdd_r.
Guenther (This used to be commit 69e6532e9d3fad9d1c55e33cf5f120ca8b4b8d51)
-rw-r--r--source3/lib/netapi/share.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/netapi/share.c b/source3/lib/netapi/share.c
index 3b99a8d291..9983471328 100644
--- a/source3/lib/netapi/share.c
+++ b/source3/lib/netapi/share.c
@@ -84,6 +84,9 @@ WERROR NetShareAdd_r(struct libnetapi_ctx *ctx,
switch (r->in.level) {
case 2:
break;
+ case 502:
+ case 503:
+ return WERR_NOT_SUPPORTED;
default:
return WERR_UNKNOWN_LEVEL;
}