diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fs/paths.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs/paths.cpp b/src/fs/paths.cpp index 31052b7bb..db9742daf 100644 --- a/src/fs/paths.cpp +++ b/src/fs/paths.cpp @@ -75,6 +75,10 @@ namespace std::string getRealPath(const std::string &str) { +#if defined(__GLIBC__) + if (str.find("(unreachable)") != std::string::npos) + return ""; +#endif // defined(__GLIBC__) #if defined(__OpenBSD__) || defined(__ANDROID__) || defined(__native_client__) char *realPath = reinterpret_cast<char*>(calloc(PATH_MAX, sizeof(char))); if (!realPath) |