mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
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:
parent
17c0c701d1
commit
9ac501e21b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18625
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user