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

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	millert_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2005/02/16 14:20:22

Modified files:
	lib/libc/stdlib: setenv.c 

Log message:
Stash the environment pointer we get from realloc() instead of just
setting a flag.  That way when we are called again we can be sure
to realloc() the right thing, regardless of the current value of
environ.  When the stashed value != environ (or when we are called
for the first time), copy the existing entries from environ and set
environ to the new value.  OK deraadt@, beck@, djm@



Visit your host, monkey.org