Verified Commit 83fbdf9a authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

enable __xstat64 for external paths

parent 9e5325a5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -656,6 +656,11 @@ int __xstat64(int ver, const char* path, struct stat64* buf) __THROW {
    if(!CTX->initialized()) {
        return LIBC_FUNC(__xstat64, ver, path, buf);
    }
    CTX->log()->trace("{}() called with path '{}'", __func__, path);
    std::string rel_path;
    if (!CTX->relativize_path(path, rel_path)) {
        return LIBC_FUNC(__xstat64, ver, rel_path.c_str(), buf);
    }
    notsup_error_32_bit_func();
    errno = ENOTSUP;
    return -1;