Re: configuration, ldap and NetInfo

Andrew Tridgell (tridge@samba.anu.edu.au)
Fri, 17 Apr 1998 22:50:05 +1000

From:	Andrew Tridgell <tridge@samba.anu.edu.au>
To:	frank@ifi.unibas.ch
Subject: Re: configuration, ldap and NetInfo
Message-Id: <19980417125017Z12583643-461+6872@samba.anu.edu.au>
Date:	Fri, 17 Apr 1998 22:50:05 +1000

> But how do we parse lists with strings containing spaces?
> e.g. hide files = .NeXT .my defs .DESKTOP
> where .my defs is a folder? (Yes, people who use GUIs do assign names with spaces!)

yep, that's why next_token() in Samba handles quoted
string. next_token() is Samba's internal strtok() style parser. I
think you'll find that putting " quotes around lists works in most
places in Samba (it should work in all places, but I bet we missed
some)

> You could argue to use a list separator, but, as I said, this gets messy.
> Right now, samba will accept several different separators, but not all on
> all occasions.

well, it should be fairly consistent, as it should always be using the
same next_token() routine. If it isn't then its a bug and we can fix
it :-}

still, adding a P_SLIST type would probably be cleaner.

Cheers, Andrew