From: Günther Deschner Date: Thu, 4 Sep 2008 13:46:21 +0000 (+0200) Subject: net: use netapi for rpc_sh_share_delete as well. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b56ec0b9952dbad9f552c4be30eaae36faa9131c;p=thirdparty%2Fsamba.git net: use netapi for rpc_sh_share_delete as well. Guenther --- diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c index f0a0f448b01..904729073d3 100644 --- a/source/utils/net_rpc.c +++ b/source/utils/net_rpc.c @@ -4675,21 +4675,12 @@ static NTSTATUS rpc_sh_share_delete(struct net_context *c, struct rpc_pipe_client *pipe_hnd, int argc, const char **argv) { - WERROR result; - NTSTATUS status; - if (argc != 1) { d_fprintf(stderr, "usage: %s \n", ctx->whoami); return NT_STATUS_INVALID_PARAMETER; } - status = rpccli_srvsvc_NetShareDel(pipe_hnd, mem_ctx, - pipe_hnd->desthost, - argv[0], - 0, - &result); - - return status; + return werror_to_ntstatus(W_ERROR(NetShareDel(pipe_hnd->desthost, argv[0], 0))); } static NTSTATUS rpc_sh_share_info(struct net_context *c,