diff options
author | Etienne CHAMPETIER <champetier.etienne@gmail.com> | 2015-11-27 16:27:12 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-11-27 17:48:49 +0100 |
commit | 77403289b83c91233c07b1c226db508bb9be8c58 (patch) | |
tree | bfe56ba4523c3fa8edb15b2d344b8a8fe1a93abe /jail/elf.c | |
parent | 2b591e08ee7797300b33f2540e5dd4595828a772 (diff) | |
download | procd-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.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; } |