1
0
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:
Jeremy Allison 2019-05-16 22:10:51 -07:00
parent 5c34fa0b85
commit 3b19412bae
2 changed files with 18 additions and 0 deletions

View File

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

View File

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