There's no need to 'unsetenv()' unsafe environment variables explicitly

since rt_readenv() already takes care of not setting unsafe variables.
This was part of the changes I submitted to Peter and John during the
review which must have gotten missed.
This commit is contained in:
Nate Williams 1996-10-01 16:09:18 +00:00
parent 17c0c701d1
commit 9ac501e21b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18625
2 changed files with 2 additions and 12 deletions

View file

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: rtld.c,v 1.35 1996/10/01 01:51:53 peter Exp $
* $Id: rtld.c,v 1.36 1996/10/01 11:54:38 peter Exp $
*/
#include <sys/param.h>
@ -319,11 +319,6 @@ struct _dynamic *dp;
careful = (uid != euid) || (gid != egid);
if (careful) {
unsetenv("LD_LIBRARY_PATH");
unsetenv("LD_PRELOAD");
}
rt_readenv();
anon_open();

View file

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: rtld.c,v 1.35 1996/10/01 01:51:53 peter Exp $
* $Id: rtld.c,v 1.36 1996/10/01 11:54:38 peter Exp $
*/
#include <sys/param.h>
@ -319,11 +319,6 @@ struct _dynamic *dp;
careful = (uid != euid) || (gid != egid);
if (careful) {
unsetenv("LD_LIBRARY_PATH");
unsetenv("LD_PRELOAD");
}
rt_readenv();
anon_open();