mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
netapi: fix NetShareEnum_r which in fact enumerates all shares.
Guenther
(This used to be commit 0637ad872e
)
This commit is contained in:
parent
1a32fbeb86
commit
d323e48abe
@ -347,13 +347,13 @@ WERROR NetShareEnum_r(struct libnetapi_ctx *ctx,
|
||||
break;
|
||||
}
|
||||
|
||||
status = rpccli_srvsvc_NetShareEnum(pipe_cli, ctx,
|
||||
r->in.server_name,
|
||||
&info_ctr,
|
||||
r->in.prefmaxlen,
|
||||
r->out.total_entries,
|
||||
r->out.resume_handle,
|
||||
&werr);
|
||||
status = rpccli_srvsvc_NetShareEnumAll(pipe_cli, ctx,
|
||||
r->in.server_name,
|
||||
&info_ctr,
|
||||
r->in.prefmaxlen,
|
||||
r->out.total_entries,
|
||||
r->out.resume_handle,
|
||||
&werr);
|
||||
if (NT_STATUS_IS_ERR(status)) {
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user