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 | d0025861c09b3a19ecd291265f10eaec5f380932 (patch) | |
tree | d9d2cfac5b04dbd8b5a30ae1916e665e864dc4b8 | |
parent | c73d0815a3a1f58b951caa62fac601a8f4630894 (diff) | |
download | samba-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.c | 5 |
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, |