summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-aout/shlib.c
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1993-11-09 04:19:36 +0000
committerpaul <paul@FreeBSD.org>1993-11-09 04:19:36 +0000
commit62cf7a7029ae90af1ea9ce16be5d9efbafa8ce17 (patch)
treea0a32c784e66fc50e42eb3f64dc3fad913ef449c /libexec/rtld-aout/shlib.c
parent3eebdaba2a8668daaa21ec126f438aad30776fc9 (diff)
downloadFreeBSD-src-62cf7a7029ae90af1ea9ce16be5d9efbafa8ce17.zip
FreeBSD-src-62cf7a7029ae90af1ea9ce16be5d9efbafa8ce17.tar.gz
Updated to newest ld from pk.
lib.c: Pull in archives containing definitions needed by shared objects. warnings.c: Less spurious "undefined symbol" msgs for shared library defined symbols. ld.c: Do a better job of recognising data in text segments, eg. `const char []'. shlib.c,ld/rtld/{Makefile rtld.c} Use strsep() in stead of strtok() and restore colons in eg. env. vars.
Diffstat (limited to 'libexec/rtld-aout/shlib.c')
-rw-r--r--libexec/rtld-aout/shlib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/rtld-aout/shlib.c b/libexec/rtld-aout/shlib.c
index 4be8354..55cd8c3 100644
--- a/libexec/rtld-aout/shlib.c
+++ b/libexec/rtld-aout/shlib.c
@@ -1,5 +1,5 @@
/*
- * $Id: shlib.c,v 1.3 1993/10/23 00:34:26 pk Exp $
+ * $Id: shlib.c,v 1.4 1993/11/08 13:21:23 pk Exp $
*/
#include <sys/param.h>
@@ -48,9 +48,10 @@ char *paths;
if (paths != NULL)
/* Add search directories from `paths' */
- while ((cp = strtok(paths, ":")) != NULL) {
- paths = NULL;
+ while ((cp = strsep(&paths, ":")) != NULL) {
add_search_dir(cp);
+ if (paths)
+ *(paths-1) = ':';
}
/* Append standard search directories */
OpenPOWER on IntegriCloud