summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-07 23:45:39 +0100
committerGünther Deschner <gd@samba.org>2008-03-07 23:51:34 +0100
commit8e1fe6379decd9c3628a8d22d8e5ab7528206e65 (patch)
treef41099f56e2d2fb3767e66a4f90cc6bff6a649d1
parent9beec265bcc81261bd220b78396cc42e6ee5eb5d (diff)
downloadsamba-8e1fe6379decd9c3628a8d22d8e5ab7528206e65.tar.gz
samba-8e1fe6379decd9c3628a8d22d8e5ab7528206e65.tar.bz2
samba-8e1fe6379decd9c3628a8d22d8e5ab7528206e65.zip
Use rpccli_srvsvc_NetShareDel in net.
Guenther (This used to be commit 10d457152e8547646353f0f37f51ac92561505ef)
-rw-r--r--source3/utils/net_rpc.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index f7fadb9520..399ace8d40 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -3314,8 +3314,11 @@ static NTSTATUS rpc_share_del_internals(const DOM_SID *domain_sid,
{
WERROR result;
- result = rpccli_srvsvc_net_share_del(pipe_hnd, mem_ctx, argv[0]);
- return W_ERROR_IS_OK(result) ? NT_STATUS_OK : NT_STATUS_UNSUCCESSFUL;
+ return rpccli_srvsvc_NetShareDel(pipe_hnd, mem_ctx,
+ pipe_hnd->cli->desthost,
+ argv[0],
+ 0,
+ &result);
}
/**
@@ -5064,14 +5067,20 @@ static NTSTATUS rpc_sh_share_delete(TALLOC_CTX *mem_ctx,
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;
}
- result = rpccli_srvsvc_net_share_del(pipe_hnd, mem_ctx, argv[0]);
- return werror_to_ntstatus(result);
+ status = rpccli_srvsvc_NetShareDel(pipe_hnd, mem_ctx,
+ pipe_hnd->cli->desthost,
+ argv[0],
+ 0,
+ &result);
+
+ return status;
}
static NTSTATUS rpc_sh_share_info(TALLOC_CTX *mem_ctx,