Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
void alloc_library_path(const char *path)
{
void alloc_library_path(const char *path)
{
+ struct stat s;
+ if (stat(path, &s))
+ return;
+
struct library_path *p;
char *_path;
struct library_path *p;
char *_path;
load_ldso_conf(gl.gl_pathv[i]);
globfree(&gl);
} else {
load_ldso_conf(gl.gl_pathv[i]);
globfree(&gl);
} else {
- struct stat s;
-
- if (stat(line, &s))
- continue;
alloc_library_path(line);
}
}
alloc_library_path(line);
}
}