1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/tools
Sean Farley 9bab236702 Added environ-replacement detection. For programs that "clean" (i.e., su)
or replace (i.e., zdump) the environment after a call to setenv(), putenv()
or unsetenv() has been made, a few changes were made.
  - getenv() will return the value from the new environ array.
  - setenv() was split into two functions:  __setenv() which is most of the
    previous setenv() without checks on the name and setenv() which
    contains the checks before calling __setenv().
  - setenv(), putenv() and unsetenv() will unset all previous values and
    call __setenv() on all entries in the new environ array which in turn
    adds them to the end of the envVars array.  Calling __setenv() instead
    of setenv() is done to avoid the temporary replacement of the '=' in a
    string with a NUL byte.  Some strings may be read-only data.

Added more regression checks for clearing the environment array.

Replaced gettimeofday() with getrusage() in timing regression check for
better accuracy.

Fixed an off-by-one bug in __remove_putenv() in the use of memmove().  This
went unnoticed due to the allocation of double the number of environ
entries when building envVars.

Fixed a few spelling mistakes in the comments.

Reviewed by:	ache
Approved by:	wes
Approved by:	re (kensmith)
2007-07-20 23:30:13 +00:00
..
build Make clear that WITHOUT_TOOLCHAIN cannot be applied to build targets. 2007-07-19 08:14:28 +00:00
debugscripts
diag
kerneldoc - Chase for crypto_if.m -> crytpodev_if.m rename in order to 2007-07-11 05:01:14 +00:00
KSE
LibraryReport
regression Added environ-replacement detection. For programs that "clean" (i.e., su) 2007-07-20 23:30:13 +00:00
sched Add some notes clarifying usage and a couple of known bugs 2007-04-22 06:20:12 +00:00
test
tools Fix commit mail retrieval when using message-id. 2007-07-10 15:30:15 +00:00
install.sh
make_libdeps.sh Make use of mk/ files from a fresh source tree, rather than 2006-11-24 09:07:26 +00:00
README

$FreeBSD$

This directory tree contains tools used for the maintenance and
testing of FreeBSD.  There is no toplevel Makefile structure since
these tools are not meant to be built as part of the standard system,
though there may be individual Makefiles in some of the subdirs.

Please read the README files in the subdirs for further information.