if uid != euid or gid != egid unsetenv("LD_NOSTD_PATH") too

This commit is contained in:
Andrey A. Chernov 1995-10-21 14:52:48 +00:00
parent 03e5b81db4
commit b2105a0990
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11617
2 changed files with 4 additions and 2 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.26 1995/09/27 23:14:08 nate Exp $
* $Id: rtld.c,v 1.27 1995/09/27 23:17:33 nate Exp $
*/
#include <sys/param.h>
@ -264,6 +264,7 @@ struct _dynamic *dp;
if (careful) {
unsetenv("LD_LIBRARY_PATH");
unsetenv("LD_NOSTD_PATH");
unsetenv("LD_PRELOAD");
}

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.26 1995/09/27 23:14:08 nate Exp $
* $Id: rtld.c,v 1.27 1995/09/27 23:17:33 nate Exp $
*/
#include <sys/param.h>
@ -264,6 +264,7 @@ struct _dynamic *dp;
if (careful) {
unsetenv("LD_LIBRARY_PATH");
unsetenv("LD_NOSTD_PATH");
unsetenv("LD_PRELOAD");
}