diff options
author | nate <nate@FreeBSD.org> | 1996-10-01 16:09:18 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1996-10-01 16:09:18 +0000 |
commit | 6a6edabfc3d324722caf01e738fd9dfe9267fc28 (patch) | |
tree | 0515867fe9828d171743b636febf97318016da6a /libexec/rtld-aout | |
parent | 6391adfddf3e9c509cec1ec2c70365408cb5d48a (diff) | |
download | FreeBSD-src-6a6edabfc3d324722caf01e738fd9dfe9267fc28.zip FreeBSD-src-6a6edabfc3d324722caf01e738fd9dfe9267fc28.tar.gz |
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.
Diffstat (limited to 'libexec/rtld-aout')
-rw-r--r-- | libexec/rtld-aout/rtld.c | 7 |
1 files changed, 1 insertions, 6 deletions
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 <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(); |