Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Some more setenv(3) update

On Tue, Oct 12, 2010 at 12:18:24AM +0200, Nicolas Joly wrote:
> Following the recent setenv(3) update, i made the attached patch which
> aims the following :
> - make it fails with EINVAL for bad name values, just like our
>   unsetenv(3); following the opengroup online function description.
>   Likewise do reject NULL value.
> - Do not strip (anymore) a leading `=' in provided value, mostly to
>   give consistent results with putenv("var==val"). In both case getenv
>   now return `=val'.
> The patch do include the corresponding testcases, and an updated
> version of the man page.
> Comments ?

Looks good.

        Kind regards

Matthias Scheler                        

Home | Main Index | Thread Index | Old Index