summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-19 02:43:04 +0100
committerGünther Deschner <gd@samba.org>2008-02-19 03:13:18 +0100
commit3c3944ee3850398a8d1349143aef53cdee44cdf4 (patch)
tree673516fb739b555411d54db89da0f1fec04e0786 /source3
parent4421e0d1470b82cdf7988a6c6d2ac67c8ea6c753 (diff)
downloadsamba-3c3944ee3850398a8d1349143aef53cdee44cdf4.tar.gz
samba-3c3944ee3850398a8d1349143aef53cdee44cdf4.tar.bz2
samba-3c3944ee3850398a8d1349143aef53cdee44cdf4.zip
Use rpccli_svcctl_QueryServiceStatus() in net.
Guenther (This used to be commit 1cc0e9b7e5b8685dc4aff8e379837dd32e386f9f)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc_service.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/source3/utils/net_rpc_service.c b/source3/utils/net_rpc_service.c
index 3c22bfe381..242d653017 100644
--- a/source3/utils/net_rpc_service.c
+++ b/source3/utils/net_rpc_service.c
@@ -50,8 +50,12 @@ static WERROR query_service_state(struct rpc_pipe_client *pipe_hnd,
return result;
}
- result = rpccli_svcctl_query_status(pipe_hnd, mem_ctx, &hService, &service_status );
- if ( W_ERROR_IS_OK(result) ) {
+ status = rpccli_svcctl_QueryServiceStatus(pipe_hnd, mem_ctx,
+ &hService,
+ &service_status,
+ &result);
+
+ if (!NT_STATUS_IS_OK(status) || !W_ERROR_IS_OK(result) ) {
*state = service_status.state;
}
@@ -269,8 +273,12 @@ static NTSTATUS rpc_service_status_internal(const DOM_SID *domain_sid,
/* get the status */
- result = rpccli_svcctl_query_status(pipe_hnd, mem_ctx, &hService, &service_status );
- if ( !W_ERROR_IS_OK(result) ) {
+ status = rpccli_svcctl_QueryServiceStatus(pipe_hnd, mem_ctx,
+ &hService,
+ &service_status,
+ &result);
+
+ if (!NT_STATUS_IS_OK(status) || !W_ERROR_IS_OK(result) ) {
d_fprintf(stderr, "Query status request failed. [%s]\n", dos_errstr(result));
goto done;
}