summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-09-10 13:26:54 +0200
committerGünther Deschner <gd@samba.org>2008-09-11 14:21:40 +0200
commitd323e48abea064a51399a6bcca63742cd32e81cd (patch)
treed2c6ec31a7e4792e6271bfd288aac324ffec5802 /source3/lib
parent1a32fbeb863479376dec042d532148d6e612145f (diff)
downloadsamba-d323e48abea064a51399a6bcca63742cd32e81cd.tar.gz
samba-d323e48abea064a51399a6bcca63742cd32e81cd.tar.bz2
samba-d323e48abea064a51399a6bcca63742cd32e81cd.zip
netapi: fix NetShareEnum_r which in fact enumerates all shares.
Guenther (This used to be commit 0637ad872e5d30f71b6ea1ec2d243ec8e8836c31)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/share.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/lib/netapi/share.c b/source3/lib/netapi/share.c
index c6af548225..2752895387 100644
--- a/source3/lib/netapi/share.c
+++ b/source3/lib/netapi/share.c
@@ -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;
}