mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s3: lib: util: Add file_lines_ploadv().
Not yet used. Duplicate code to file_lines_pload() except uses vectored argument list. file_lines_pload() will be removed once all callers are converted. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13964 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
5c34fa0b85
commit
3b19412bae
@ -170,3 +170,18 @@ char **file_lines_pload(TALLOC_CTX *mem_ctx, const char *syscmd,
|
||||
|
||||
return file_lines_parse(p, size, numlines, mem_ctx);
|
||||
}
|
||||
|
||||
char **file_lines_ploadv(TALLOC_CTX *mem_ctx,
|
||||
char * const argl[],
|
||||
int *numlines)
|
||||
{
|
||||
char *p = NULL;
|
||||
size_t size;
|
||||
|
||||
p = file_ploadv(argl, &size);
|
||||
if (!p) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return file_lines_parse(p, size, numlines, mem_ctx);
|
||||
}
|
||||
|
@ -31,5 +31,8 @@ int file_pload_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
||||
|
||||
char **file_lines_pload(TALLOC_CTX *mem_ctx, const char *syscmd,
|
||||
int *numlines);
|
||||
char **file_lines_ploadv(TALLOC_CTX *mem_ctx,
|
||||
char * const argl[],
|
||||
int *numlines);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user