From 6a6edabfc3d324722caf01e738fd9dfe9267fc28 Mon Sep 17 00:00:00 2001 From: nate Date: Tue, 1 Oct 1996 16:09:18 +0000 Subject: 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. --- libexec/rtld-aout/rtld.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libexec') diff --git a/libexec/rtld-aout/rtld.c b/libexec/rtld-aout/rtld.c index 9c532db..28f7453 100644 --- a/libexec/rtld-aout/rtld.c +++ b/libexec/rtld-aout/rtld.c @@ -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 @@ -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(); -- cgit v1.1