]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
netapi: fix return code in NetShareAdd_r.
authorGünther Deschner <gd@samba.org>
Thu, 4 Sep 2008 18:23:39 +0000 (20:23 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 5 Sep 2008 10:32:56 +0000 (12:32 +0200)
Guenther

source/lib/netapi/share.c

index 3b99a8d2910a509e41820c0f9421ba493dc282f5..9983471328e531819d742ce1a23c43613b50d7c0 100644 (file)
@@ -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;
        }