Remove LD_NOSTD_PATH implementation, it isn't works and

can cause some problems.
Suggested-by: davidg
This commit is contained in:
Andrey A. Chernov 1995-10-24 06:48:16 +00:00
parent 8bbd907273
commit a4057ed8d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11766
3 changed files with 6 additions and 10 deletions

View File

@ -32,7 +32,7 @@ static char sccsid[] = "@(#)ld.c 6.10 (Berkeley) 5/22/91";
Set, indirect, and warning symbol features added by Randy Smith. */
/*
* $Id: ld.c,v 1.29 1995/07/13 08:30:07 rgrimes Exp $
* $Id: ld.c,v 1.30 1995/09/28 19:43:20 bde Exp $
*/
/* Define how to initialize system-dependent header fields. */
@ -560,7 +560,7 @@ decode_command(argc, argv)
/* Append the standard search directories to the user-specified ones. */
add_search_path(getenv("LD_LIBRARY_PATH"));
if (!nostdlib && getenv("LD_NOSTD_PATH") == NULL)
if (!nostdlib)
std_search_path();
}

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.27 1995/09/27 23:17:33 nate Exp $
* $Id: rtld.c,v 1.28 1995/10/21 14:52:48 ache Exp $
*/
#include <sys/param.h>
@ -264,14 +264,12 @@ struct _dynamic *dp;
if (careful) {
unsetenv("LD_LIBRARY_PATH");
unsetenv("LD_NOSTD_PATH");
unsetenv("LD_PRELOAD");
}
/* Setup directory search */
add_search_path(getenv("LD_LIBRARY_PATH"));
if (getenv("LD_NOSTD_PATH") == NULL)
std_search_path();
std_search_path();
anon_open();
/* Load required objects into the process address space */

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.27 1995/09/27 23:17:33 nate Exp $
* $Id: rtld.c,v 1.28 1995/10/21 14:52:48 ache Exp $
*/
#include <sys/param.h>
@ -264,14 +264,12 @@ struct _dynamic *dp;
if (careful) {
unsetenv("LD_LIBRARY_PATH");
unsetenv("LD_NOSTD_PATH");
unsetenv("LD_PRELOAD");
}
/* Setup directory search */
add_search_path(getenv("LD_LIBRARY_PATH"));
if (getenv("LD_NOSTD_PATH") == NULL)
std_search_path();
std_search_path();
anon_open();
/* Load required objects into the process address space */