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/torture/libnet | |
parent | 70c9cb4d9bb9e211f2e3474df47e001bd959b056 (diff) | |
download | samba-3206f3552791f1806eec3a6d4bdc55857da4b264.tar.gz samba-3206f3552791f1806eec3a6d4bdc55857da4b264.tar.bz2 samba-3206f3552791f1806eec3a6d4bdc55857da4b264.zip |
s4-srvsvc: merge srvsvc_NetShareAdd from s3 idl.
Guenther
Diffstat (limited to 'source4/torture/libnet')
-rw-r--r-- | source4/torture/libnet/libnet_share.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/libnet/libnet_share.c b/source4/torture/libnet/libnet_share.c index 76a29851e1..e49461357a 100644 --- a/source4/torture/libnet/libnet_share.c +++ b/source4/torture/libnet/libnet_share.c @@ -170,6 +170,7 @@ static bool test_addshare(struct dcerpc_pipe *svc_pipe, TALLOC_CTX *mem_ctx, con { NTSTATUS status; struct srvsvc_NetShareAdd add; + union srvsvc_NetShareInfo info; struct srvsvc_NetShareInfo2 i; i.name = share; @@ -180,9 +181,11 @@ static bool test_addshare(struct dcerpc_pipe *svc_pipe, TALLOC_CTX *mem_ctx, con i.password = NULL; i.permissions = 0x0; + info.info2 = &i; + add.in.server_unc = host; add.in.level = 2; - add.in.info.info2 = &i; + add.in.info = &info; add.in.parm_error = NULL; status = dcerpc_srvsvc_NetShareAdd(svc_pipe, mem_ctx, &add); |