1
0
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:
Günther Deschner 2008-09-10 13:26:54 +02:00
parent 1a32fbeb86
commit d323e48abe

View File

@ -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;
}