From: Volker Lendecke Date: Mon, 11 May 2020 09:09:02 +0000 (+0200) Subject: rpcclient: Make netfileenum cmd print the path names X-Git-Tag: samba-4.13.0rc1~594 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=1d40cc01c2d7f14704c1d9b4b7c42c4cf3450da9;p=vlendec%2Fsamba-autobuild%2F.git rpcclient: Make netfileenum cmd print the path names Needed for the next commit testing netfileenum Bug: https://bugzilla.samba.org/show_bug.cgi?id=14355 Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c index a9de4608fb9..478afc68cd1 100644 --- a/source3/rpcclient/cmd_srvsvc.c +++ b/source3/rpcclient/cmd_srvsvc.c @@ -684,6 +684,14 @@ static WERROR cmd_srvsvc_net_file_enum(struct rpc_pipe_client *cli, goto done; } + if (info_ctr.level == 3) { + struct srvsvc_NetFileCtr3 *ret = info_ctr.ctr.ctr3; + uint32_t i; + + for (i=0; icount; i++) { + printf("%s\n", ret->array[i].path); + } + } done: return result; }