mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
rtld: properly handle root directory in load path (bug 30435)
Don't strip the trailing slash when checking for existence of a load path element to handle the special case of the root directory.
This commit is contained in:
parent
7aec73c406
commit
e0189b2540
@ -1859,7 +1859,7 @@ open_path (const char *name, size_t namelen, int mode,
|
||||
test whether there is any directory at all. */
|
||||
struct __stat64_t64 st;
|
||||
|
||||
buf[buflen - namelen - 1] = '\0';
|
||||
buf[buflen - namelen] = '\0';
|
||||
|
||||
if (__stat64_time64 (buf, &st) != 0
|
||||
|| ! S_ISDIR (st.st_mode))
|
||||
|
Loading…
Reference in New Issue
Block a user