Use unsetenv(3) instead of putenv(3) to clean up environment variables

properly.

PR:		94170
Submitted by:	Kenneth Vestergaard Schmidt <kvs@binarysolutions.dk>
Approved by:	maintainer, arved (mentor)
This commit is contained in:
Stefan Walter 2006-05-21 13:23:24 +00:00
parent 2b527a3423
commit a7f880d9c9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162934

View File

@ -5,6 +5,7 @@
PORTNAME= chroot_safe
PORTVERSION= 1.4
PORTREVISION= 1
CATEGORIES= security sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= chrootsafe
@ -24,5 +25,6 @@ post-patch:
-e 's|-o chroot_safe.so|chroot_safe.cpp -o chroot_safe.so|' \
${WRKSRC}/Makefile.in
${REINPLACE_CMD} 's|chroot(1)|chroot(8)|' ${WRKSRC}/chroot_safe.1.in
${REINPLACE_CMD} 's|putenv|unsetenv|' ${WRKSRC}/chroot_safe.cpp
.include <bsd.port.mk>