diff options
author | Etienne CHAMPETIER <champetier.etienne@gmail.com> | 2015-11-27 16:27:00 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-11-27 17:48:49 +0100 |
commit | 34a53406063495710e2416da3bdc40f80a72963c (patch) | |
tree | 6343757daf2b6a3c7e0fb934c6010feab7de8073 /jail/elf.c | |
parent | 3de9e0accfb691599c938eb1a040476c77fc423e (diff) | |
download | procd-34a53406063495710e2416da3bdc40f80a72963c.tar.gz |
ujail: don't add non existant library_path
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
Diffstat (limited to 'jail/elf.c')
-rw-r--r-- | jail/elf.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -33,6 +33,10 @@ static LIST_HEAD(library_paths); void alloc_library_path(const char *path) { + struct stat s; + if (stat(path, &s)) + return; + struct library_path *p; char *_path; @@ -343,10 +347,6 @@ void load_ldso_conf(const char *conf) load_ldso_conf(gl.gl_pathv[i]); globfree(&gl); } else { - struct stat s; - - if (stat(line, &s)) - continue; alloc_library_path(line); } } |