mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
r19450: Fix smbtree's use of netshareenum.
Jelmer, how much of r18802 did you actually test?? Volker (This used to be commit d0025861c09b3a19ecd291265f10eaec5f380932)
This commit is contained in:
parent
2a10d76865
commit
1c16e0d642
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user