mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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 <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
8c080f28c3
commit
1d40cc01c2
@ -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; i<ret->count; i++) {
|
||||
printf("%s\n", ret->array[i].path);
|
||||
}
|
||||
}
|
||||
done:
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user