[SSSD] [PATCH] INI allow string list to have empty values

David O'Brien davido at redhat.com
Thu Jan 21 23:57:59 UTC 2010


Dmitri Pal wrote:
> Hello,
> 
> This patch allows proper parsing of values like this:
> 
> fruit=apple,,orange
> 
> The added function would return the list of three items:
> apple
> <empty>
> orange
> 
> Previously existing parsing functions in this case could only return
> apple
> orange
> 
> This is used in the ELAPI configuration to provide alternative names for
> the column headers.
> 
> This is the last of the non ELAPI patche that I have in my repo.
> 
> 

These two things might be completely unrelated, but having just edited 
the sssd-ldap man page and the section on failover, I couldn't help but 
wonder:
<quote>
  Failover Syntax
        The list of servers is given as a comma-separated list; any 
number of spaces is allowed around the comma.
</quote>

How would an "accidental" double-comma be handled here? I'm guessing 
white space is removed wherever it's not needed.

/thoughts from a non-coder  ;-)

-- 

David O'Brien
Senior Technical Writer, Engineering Content Services
Red Hat Asia Pacific Pty Ltd
193 North Quay, Brisbane
+61 7 3514 8189

http://freeipa.org/page/DocumentationPortal
http://git.fedorahosted.org/git/ipadocs.git

He who asks is a fool for five minutes, but he who does not ask remains 
a fool forever."
  ~ Chinese proverb



More information about the sssd-devel mailing list