From cb2d7aa82775c77d089b3d6bea9b7a63d200fec3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 4 Sep 2008 15:46:21 +0200 Subject: [PATCH] net: use netapi for rpc_sh_share_delete as well. Guenther (This used to be commit b56ec0b9952dbad9f552c4be30eaae36faa9131c) --- source3/utils/net_rpc.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index f0a0f448b01e..904729073d36 100644 --- a/source3/utils/net_rpc.c +++ b/source3/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, -- 2.34.1