freebsd-skq/tools/regression/environ/Makefile.envctl
green 32cc2b56a7 Do not gratuitously fail *env(3) operations due to corrupt ('='-less)
**environ entries.  This puts non-getenv(3) operations in line with
getenv(3) in that bad environ entries do not cause all operations to
fail.  There is still some inconsistency in that getenv(3) in the
absence of any environment-modifying operation does not emit corrupt
environ entry warnings.

I also fixed another inconsistency in getenv(3) where updating the
global environ pointer would not be reflected in the return values.
It would have taken an intermediary setenv(3)/putenv(3)/unsetenv(3)
in order to see the change.
2009-12-01 05:04:31 +00:00

17 lines
178 B
Makefile

#
# $FreeBSD$
#
SRCS= envctl.c
PROG= envctl
CFLAGS+=-Wall -I../../../include
CLEANFILES= ${PROG}.core
NO_MAN= yes
.include <bsd.prog.mk>
test: ${PROG}
@env -i sh envtest.t