1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Use rpccli_srvsvc_NetShareDel in net.

Guenther
This commit is contained in:
Günther Deschner 2008-03-07 23:45:39 +01:00
parent 2e1df30678
commit 10d457152e

View File

@ -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,