projects
/
oweals
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3de9e0a
)
ujail: don't add non existant library_path
author
Etienne CHAMPETIER
<champetier.etienne@gmail.com>
Fri, 27 Nov 2015 16:27:00 +0000
(16:27 +0000)
committer
John Crispin
<blogic@openwrt.org>
Fri, 27 Nov 2015 16:48:49 +0000
(17:48 +0100)
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
jail/elf.c
patch
|
blob
|
history
diff --git
a/jail/elf.c
b/jail/elf.c
index cbb30510d71695d71b911b96a04323b0a779f245..34a5aca8282da0f55deed35ebdc945eb9f791448 100644
(file)
--- a/
jail/elf.c
+++ b/
jail/elf.c
@@
-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);
}
}