summaryrefslogtreecommitdiff
path: root/jail/elf.c
diff options
context:
space:
mode:
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>2015-11-27 16:27:12 +0000
committerJohn Crispin <blogic@openwrt.org>2015-11-27 17:48:49 +0100
commit77403289b83c91233c07b1c226db508bb9be8c58 (patch)
treebfe56ba4523c3fa8edb15b2d344b8a8fe1a93abe /jail/elf.c
parent2b591e08ee7797300b33f2540e5dd4595828a772 (diff)
downloadprocd-77403289b83c91233c07b1c226db508bb9be8c58.tar.gz
ujail: remove some debug/dev hack
this code is present since first ujail commit (dfcfcca7) Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
Diffstat (limited to 'jail/elf.c')
-rw-r--r--jail/elf.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/jail/elf.c b/jail/elf.c
index c3a392c..7c52880 100644
--- a/jail/elf.c
+++ b/jail/elf.c
@@ -100,17 +100,12 @@ const char* find_lib(const char *file)
{
struct library *l;
static char path[PATH_MAX];
- const char *p;
l = avl_find_element(&libraries, file, l, avl);
if (!l)
return NULL;
- p = l->path;
- if (strstr(p, "local"))
- p = "/lib";
-
- snprintf(path, sizeof(path), "%s/%s", p, file);
+ snprintf(path, sizeof(path), "%s/%s", l->path, file);
return path;
}