summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_svc.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-01-28 21:11:15 +0000
committerLuke Leighton <lkcl@samba.org>1999-01-28 21:11:15 +0000
commit6b7e1ead37b8655cf3cfb52a421461cedb3d0c90 (patch)
treed20d00e08c00b2d5e70b337c8add390c2749bed2 /source3/rpc_parse/parse_svc.c
parent92aca8b1b7d292d7c558928217f1c8dbbb9dfa87 (diff)
downloadsamba-6b7e1ead37b8655cf3cfb52a421461cedb3d0c90.tar.gz
samba-6b7e1ead37b8655cf3cfb52a421461cedb3d0c90.tar.bz2
samba-6b7e1ead37b8655cf3cfb52a421461cedb3d0c90.zip
rpcclient "Service Control Manager" svcenum [-i] command.
(This used to be commit a022710f1e3996ecbe6bbe035e1df0bc4c050b34)
Diffstat (limited to 'source3/rpc_parse/parse_svc.c')
-rw-r--r--source3/rpc_parse/parse_svc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_svc.c b/source3/rpc_parse/parse_svc.c
index 912582f35e..9c1f0f3335 100644
--- a/source3/rpc_parse/parse_svc.c
+++ b/source3/rpc_parse/parse_svc.c
@@ -106,7 +106,7 @@ void make_svc_q_open_service(SVC_Q_OPEN_SERVICE *q_u,
DEBUG(5,("make_svc_q_open_service\n"));
memcpy(&(q_u->scman_pol), hnd, sizeof(q_u->scman_pol));
- make_unistr2(&(q_u->uni_srv_name), server, strlen(server)+1);
+ make_unistr2(&(q_u->uni_svc_name), server, strlen(server)+1);
q_u->des_access = des_access;
}
@@ -126,7 +126,7 @@ void svc_io_q_open_service(char *desc, SVC_Q_OPEN_SERVICE *q_u, prs_struct *ps,
smb_io_pol_hnd("", &(q_u->scman_pol), ps, depth);
prs_align(ps);
- smb_io_unistr2("", &(q_u->uni_srv_name), 1, ps, depth);
+ smb_io_unistr2("", &(q_u->uni_svc_name), 1, ps, depth);
prs_align(ps);
prs_uint32("des_access", ps, depth, &(q_u->des_access));
@@ -492,12 +492,14 @@ void svc_io_q_query_svc_config(char *desc, SVC_Q_QUERY_SVC_CONFIG *q_u, prs_str
makes an SVC_R_QUERY_SVC_CONFIG structure.
********************************************************************/
void make_svc_r_query_svc_config(SVC_R_QUERY_SVC_CONFIG *r_c,
+ QUERY_SERVICE_CONFIG *cfg,
uint32 buf_size)
{
if (r_c == NULL) return;
DEBUG(5,("make_svc_r_query_svc_config\n"));
+ r_c->cfg = cfg;
r_c->buf_size = buf_size;
}