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