diff options
author | Günther Deschner <gd@samba.org> | 2008-10-29 14:52:49 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-31 02:44:31 +0100 |
commit | 3206f3552791f1806eec3a6d4bdc55857da4b264 (patch) | |
tree | e30e2f45c3a2cf5533d14baf4628284896223990 /source4/libnet/libnet_share.c | |
parent | 70c9cb4d9bb9e211f2e3474df47e001bd959b056 (diff) | |
download | samba-3206f3552791f1806eec3a6d4bdc55857da4b264.tar.gz samba-3206f3552791f1806eec3a6d4bdc55857da4b264.tar.xz samba-3206f3552791f1806eec3a6d4bdc55857da4b264.zip |
s4-srvsvc: merge srvsvc_NetShareAdd from s3 idl.
Guenther
Diffstat (limited to 'source4/libnet/libnet_share.c')
-rw-r--r-- | source4/libnet/libnet_share.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libnet/libnet_share.c b/source4/libnet/libnet_share.c index e24ba8161a9..5affb27ead8 100644 --- a/source4/libnet/libnet_share.c +++ b/source4/libnet/libnet_share.c @@ -115,6 +115,7 @@ NTSTATUS libnet_AddShare(struct libnet_context *ctx, NTSTATUS status; struct libnet_RpcConnect c; struct srvsvc_NetShareAdd s; + union srvsvc_NetShareInfo info; c.level = LIBNET_RPC_CONNECT_SERVER; c.in.name = r->in.server_name; @@ -129,8 +130,10 @@ NTSTATUS libnet_AddShare(struct libnet_context *ctx, return status; } + info.info2 = &r->in.share; + s.in.level = 2; - s.in.info.info2 = &r->in.share; + s.in.info = &info; s.in.server_unc = talloc_asprintf(mem_ctx, "\\\\%s", r->in.server_name); status = dcerpc_srvsvc_NetShareAdd(c.out.dcerpc_pipe, mem_ctx, &s); |