cvs commit: src/bin/df df.c src/bin/sh var.c src/include stdlib.h src/libexec/pppoed pppoed.c src/sys/sys param.h src/lib/libc/stdlib Makefile.inc getenv.3 getenv.c putenv.c setenv.c src/tools/regression/environ Makefile Makefile.envctl ...

Andrey Chernov ache at nagual.pp.ru
Wed Jul 4 14:42:51 UTC 2007


On Wed, Jul 04, 2007 at 12:00:41AM +0000, Sean Farley wrote:
>   Several patches to base utilities to handle the POSIX changes from
>   Andrey Chernov's previous commit.  A few I re-wrote to use setenv()
>   instead of putenv().

Replacing putenv() with setenv() should care about the case when putenv() 
uses getenv()-provided value directly, like in sh's var.c. It should be 
copied by strdup() or something like first to not break env before 
following setenv() call. 

In my patch I always care about this.

-- 
http://ache.pp.ru/


More information about the cvs-all mailing list