Verified Commit 52fea586 authored by Marc Vef's avatar Marc Vef
Browse files

fix

parent d36b892d
Loading
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -205,13 +205,9 @@ hook_fstatat(int dirfd, const char* cpath, struct stat* buf, int flags) {
    LOG(DEBUG, "{}() called with path: \"{}\", fd: {}, buf: {}, flags: {}",
        __func__, cpath, dirfd, fmt::ptr(buf), flags);

    if(flags & AT_EMPTY_PATH) {
        LOG(ERROR, "{}() AT_EMPTY_PATH flag not supported", __func__);
        return -ENOTSUP;
    }

    std::string normalized_path{};
    auto status = gkfs::path::normalize(dirfd, cpath, normalized_path);
    LOG(INFO, "{}() normalized path: \"{}\"", __func__, normalized_path);

    switch(status) {
        case gkfs::path::NormalizeStatus::fd_unknown: