summaryrefslogtreecommitdiffstats
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
commitd0025861c09b3a19ecd291265f10eaec5f380932 (patch)
treed9d2cfac5b04dbd8b5a30ae1916e665e864dc4b8
parentc73d0815a3a1f58b951caa62fac601a8f4630894 (diff)
downloadsamba-d0025861c09b3a19ecd291265f10eaec5f380932.tar.gz
samba-d0025861c09b3a19ecd291265f10eaec5f380932.tar.xz
samba-d0025861c09b3a19ecd291265f10eaec5f380932.zip
r19450: Fix smbtree's use of netshareenum.
Jelmer, how much of r18802 did you actually test?? Volker
-rw-r--r--source/utils/smbtree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/utils/smbtree.c b/source/utils/smbtree.c
index b2a4e240ff4..31ed7635654 100644
--- a/source/utils/smbtree.c
+++ b/source/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,