summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/rtld.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2013-09-21 21:03:52 +0000
committerdes <des@FreeBSD.org>2013-09-21 21:03:52 +0000
commitb4fc46964b2d3d8a8685e2629da09f13748dd548 (patch)
treed9806f4ace92c72d22e964e58648a434d081155c /libexec/rtld-elf/rtld.c
parent497ee46bc7673130423fc2967f992914bb690cbf (diff)
downloadFreeBSD-src-b4fc46964b2d3d8a8685e2629da09f13748dd548.zip
FreeBSD-src-b4fc46964b2d3d8a8685e2629da09f13748dd548.tar.gz
Make the directory mapping functionality, which was previously only
available in 32-bit compatibility mode, unconditional. Overhaul the man page, which had evolved more by accretion than by design. Approved by: re (gjb) MFC after: 3 weeks
Diffstat (limited to 'libexec/rtld-elf/rtld.c')
-rw-r--r--libexec/rtld-elf/rtld.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 2da990c..cd18bad 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -2581,12 +2581,14 @@ rtld_exit(void)
lock_release(rtld_bind_lock, &lockstate);
}
+/*
+ * Iterate over a search path, translate each element, and invoke the
+ * callback on the result.
+ */
static void *
path_enumerate(const char *path, path_enum_proc callback, void *arg)
{
-#ifdef COMPAT_32BIT
const char *trans;
-#endif
if (path == NULL)
return (NULL);
@@ -2596,13 +2598,11 @@ path_enumerate(const char *path, path_enum_proc callback, void *arg)
char *res;
len = strcspn(path, ":;");
-#ifdef COMPAT_32BIT
trans = lm_findn(NULL, path, len);
if (trans)
res = callback(trans, strlen(trans), arg);
else
-#endif
- res = callback(path, len, arg);
+ res = callback(path, len, arg);
if (res != NULL)
return (res);
OpenPOWER on IntegriCloud