From: robert Date: Thu, 27 Apr 2023 12:27:56 +0000 (+0000) Subject: revert cache lookup for full pathnames X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ba367c050feedcdab7ab7c56d3fa91cb96dc6fdc;p=openbsd revert cache lookup for full pathnames --- diff --git a/libexec/ld.so/library_subr.c b/libexec/ld.so/library_subr.c index 1eefbcea87d..43b19855551 100644 --- a/libexec/ld.so/library_subr.c +++ b/libexec/ld.so/library_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: library_subr.c,v 1.54 2023/04/24 08:59:09 robert Exp $ */ +/* $OpenBSD: library_subr.c,v 1.55 2023/04/27 12:27:56 robert Exp $ */ /* * Copyright (c) 2002 Dale Rahn @@ -344,13 +344,6 @@ _dl_load_shlib(const char *libname, elf_object_t *parent, int type, int flags, _dl_build_sod(lname, &sod); req_sod = sod; - object = _dl_find_loaded_shlib(lname, req_sod, flags); - if (object) { - _dl_free((char *)sod.sod_name); - _dl_free(lpath); - return (object); - } - paths[0] = lpath; paths[1] = NULL; fullpathagain: