hi, > Module Name: src > Committed By: christos > Date: Fri Apr 20 17:31:30 UTC 2012 > > Modified Files: > src/include: stdlib.h > src/lib/libc/compat/include: stdlib.h > src/lib/libc/compat/stdlib: Makefile.inc > Added Files: > src/lib/libc/compat/stdlib: compat_putenv.c > > Log Message: > PR/46360: YAMAMOTO Takashi: Restore NetBSD-5 compatibility with putenv() > copying the passed string (which is not ToG compliant), instead of using > it directly in the environment arrat as it should. Needs to be pulled up > to NetBSd-6.
thanks for a quick fix. but why the compat code is different from the netbsd-5 code? this version leaks memory if called repeatedly, doesn't it? YAMAMOTO Takashi > > > To generate a diff of this commit: > cvs rdiff -u -r1.97 -r1.98 src/include/stdlib.h > cvs rdiff -u -r1.4 -r1.5 src/lib/libc/compat/include/stdlib.h > cvs rdiff -u -r1.2 -r1.3 src/lib/libc/compat/stdlib/Makefile.inc > cvs rdiff -u -r0 -r1.1 src/lib/libc/compat/stdlib/compat_putenv.c > > Please note that diffs are not public domain; they are subject to the > copyright notices on the relevant files.