Unverified Commit 8f0fd44c authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

bugfix lstat use resolved path

lstat function was passing to the glibc a path without resolving it
first
parent 98468c06
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -813,7 +813,7 @@ int __lxstat(int ver, const char* path, struct stat* buf) noexcept {
    CTX->log()->trace("{}() called with path '{}'", __func__, path);
    std::string rel_path;
    if (!CTX->relativize_path(path, rel_path, false)) {
        return LIBC_FUNC(__lxstat, ver, path, buf);
        return LIBC_FUNC(__lxstat, ver, rel_path.c_str(), buf);
    }
    return adafs_stat(rel_path, buf);
}