PATCH: util-env

Trever L. Adams trever at middleearth.sapphiresunday.org
Wed Oct 12 12:48:49 UTC 2016


On 10/12/2016 06:13 AM, Volker Lendecke wrote:
>
> A while ago I've created lib/util/strv.[ch] after the glibc argv_*
> routines. glibc has envz_* routines, that are based upon the argv
> ones. Just for consistency, can we create something on top of the
> strv.[ch] ones, modeled after the envz_* routines from glibc? The one
> thing that is missing is turning making an envz formatted blob into an
> array of char * pointers suitable for execle. I did not find a good
> glibc routine for that.
>
> Nothing spectacularly fancy, but we already have "struct string_list"
> (which I would like to get rid of), we have the strv things, and adding
> yet another string-list like abstraction is something I would like to
> avoid.
>
> Just my 2ct.
>
> Volker
>
Volker,

Thank you. I see your point and agree with you.

I will rework this. Would it be appropriate to add a function
strv_to_env to the strv file?

Thank you.
Trever

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20161012/bdb7d628/signature.sig>


More information about the samba-technical mailing list