Source-Changes archive

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

CVS commit: src/lib/libc/stdlib

Module Name:    src
Committed By:   tron
Date:           Sat Sep 25 18:11:40 UTC 2010

Modified Files:
        src/lib/libc/stdlib: getenv.c local.h setenv.c unsetenv.c

Log Message:
Remember memory used by allocated environment variables instead of
using a bitmap. This deals with the case where a variable is first
set via setenv(3) or putenv(3), then overwritten by changing
"environ" directory and afterwards overwritten with setenv(3) again.

This stops "zsh" from crashing under NetBSD-current.

Code reviewed by Christos Zoulas.

To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/stdlib/getenv.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/stdlib/local.h
cvs rdiff -u -r1.35 -r1.36 src/lib/libc/stdlib/setenv.c
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/stdlib/unsetenv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index