summaryrefslogtreecommitdiffstats
path: root/source3/utils/smbtree.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-22 10:01:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:36 -0500
commit1c16e0d642a17a247434eee0ca7c57d6383ff797 (patch)
tree8ad810d813824c8c6d67baef465f72c921c38ab7 /source3/utils/smbtree.c
parent2a10d7686553a2c2377165b7f80269d2dcae8847 (diff)
downloadsamba-1c16e0d642a17a247434eee0ca7c57d6383ff797.tar.gz
samba-1c16e0d642a17a247434eee0ca7c57d6383ff797.tar.xz
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)
Diffstat (limited to 'source3/utils/smbtree.c')
-rw-r--r--source3/utils/smbtree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c
index b2a4e240ff4..31ed7635654 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,