diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-10-22 10:01:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:36 -0500 |
commit | 1c16e0d642a17a247434eee0ca7c57d6383ff797 (patch) | |
tree | 8ad810d813824c8c6d67baef465f72c921c38ab7 | |
parent | 2a10d7686553a2c2377165b7f80269d2dcae8847 (diff) | |
download | samba-1c16e0d642a17a247434eee0ca7c57d6383ff797.tar.gz samba-1c16e0d642a17a247434eee0ca7c57d6383ff797.tar.bz2 samba-1c16e0d642a17a247434eee0ca7c57d6383ff797.zip |
r19450: Fix smbtree's use of netshareenum.
Jelmer, how much of r18802 did you actually test??
Volker
(This used to be commit d0025861c09b3a19ecd291265f10eaec5f380932)
-rw-r--r-- | source3/utils/smbtree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c index b2a4e240ff..31ed763565 100644 --- a/source3/utils/smbtree.c +++ b/source3/utils/smbtree.c @@ -135,6 +135,7 @@ static BOOL get_rpc_shares(struct cli_state *cli, struct rpc_pipe_client *pipe_hnd; TALLOC_CTX *mem_ctx; uint32 enum_hnd; + struct srvsvc_NetShareCtr1 ctr1; union srvsvc_NetShareCtr ctr; uint32 numentries; int i; @@ -156,6 +157,10 @@ static BOOL get_rpc_shares(struct cli_state *cli, return False; } + ZERO_STRUCT(ctr1); + level = 1; + ctr.ctr1 = &ctr1; + status = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL, &info_level, &ctr, 0xffffffff, &numentries, |