diff options
author | dfr <dfr@FreeBSD.org> | 1998-11-27 21:19:52 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-11-27 21:19:52 +0000 |
commit | 6c22f92d3942a8ba9069553a04577815ee5670fa (patch) | |
tree | b11d1135320a7116774420cfb64f1aa7ec34a2cd /libexec/rtld-elf | |
parent | b4bceb0b079d736c80f4455cc03d60f529339dc8 (diff) | |
download | FreeBSD-src-6c22f92d3942a8ba9069553a04577815ee5670fa.zip FreeBSD-src-6c22f92d3942a8ba9069553a04577815ee5670fa.tar.gz |
Use the runpath of the main program for locating libraries loaded by
dlopen().
Reviewed by: jdp
Diffstat (limited to 'libexec/rtld-elf')
-rw-r--r-- | libexec/rtld-elf/rtld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 1698ed0..9b4a9cf 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -22,7 +22,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.11 1998/09/22 02:09:56 jdp Exp $ + * $Id: rtld.c,v 1.12 1998/10/13 03:31:59 jdp Exp $ */ /* @@ -1182,7 +1182,7 @@ dlopen(const char *name, int mode) if (name == NULL) obj = obj_main; else { - char *path = find_library(name, NULL); + char *path = find_library(name, obj_main); if (path != NULL) obj = load_object(path); } |