20f492f0eb
**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.
17 lines
178 B
Makefile
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
|