diff options
author | Günther Deschner <gd@samba.org> | 2008-09-04 15:46:21 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-09-05 12:35:11 +0200 |
commit | cb2d7aa82775c77d089b3d6bea9b7a63d200fec3 (patch) | |
tree | eebdcfab2b177c07050c7fd06a056bb6ae6112ef /source3 | |
parent | f9294970b48322f99da121c59881929bde6465fb (diff) | |
download | samba-cb2d7aa82775c77d089b3d6bea9b7a63d200fec3.tar.gz samba-cb2d7aa82775c77d089b3d6bea9b7a63d200fec3.tar.bz2 samba-cb2d7aa82775c77d089b3d6bea9b7a63d200fec3.zip |
net: use netapi for rpc_sh_share_delete as well.
Guenther
(This used to be commit b56ec0b9952dbad9f552c4be30eaae36faa9131c)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_rpc.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index f0a0f448b0..904729073d 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 <share>\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, |