From 7850c90d2d3c38a7b22e63d3d85e0bd31af1620d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 4 Sep 2008 20:23:39 +0200 Subject: netapi: fix return code in NetShareAdd_r. Guenther (This used to be commit 69e6532e9d3fad9d1c55e33cf5f120ca8b4b8d51) --- source3/lib/netapi/share.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit