From 3f0c31fbd388986d636b5701f66ed7b215a1b903 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 9 Nov 2012 11:32:47 +0100 Subject: [PATCH] s3:winbindd:util: add a comment explaining the function parse_sidlist() Signed-off-by: Michael Adam Reviewed-by: Stefan Metzmacher --- source3/winbindd/winbindd_util.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index 25ef750075d..6e13ca8ba7d 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -1360,6 +1360,15 @@ bool is_domain_online(const struct winbindd_domain *domain) return !is_domain_offline(domain); } +/** + * Parse an char array into a list of sids. + * + * The input sidstr should consist of 0-terminated strings + * representing sids, separated by newline characters '\n'. + * The list is terminated by an empty string, i.e. + * character '\0' directly following a character '\n' + * (or '\0' right at the start of sidstr). + */ bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr, struct dom_sid **sids, uint32_t *num_sids) { -- 2.11.4.GIT