summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-09-22 04:33:37 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-09-22 04:33:37 +0000
commit11da46f5f951dae2ff65d9fb47a8e30cdc09627f (patch)
treec754133f0138956ab5013e3035905c456300605c /libexec
parentb62d4a186cd5ce5a4fabdf5dd26790fc3852a96b (diff)
Do not check for ':' twice, otherwise the rpath loses the first character
after the : in the list of paths.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.so/library.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libexec/ld.so/library.c b/libexec/ld.so/library.c
index d1fd9478647..72dd02012bc 100644
--- a/libexec/ld.so/library.c
+++ b/libexec/ld.so/library.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: library.c,v 1.9 2001/08/21 01:19:35 drahn Exp $ */
+/* $OpenBSD: library.c,v 1.10 2001/09/22 04:33:36 drahn Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -120,9 +120,6 @@ _dl_load_shlib(const char *libname, elf_object_t *parent, int type)
if(*(path - 1) != '/') {/* Make sure '/' after dir path */
*path++ = '/';
}
- if(*pp) { /* ':' if not end. skip over. */
- pp++;
- }
while(path < lp + PATH_MAX && (*path++ = *ln++)) {};
if(path < lp + PATH_MAX) {
object = _dl_tryload_shlib(lp, type);