Commit 30d8e9bf authored by Ramon Nou's avatar Ramon Nou
Browse files

mkdir bugfix

parent e0e9611f
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1351,7 +1351,7 @@ mkdir(const char* path, mode_t mode) {
    if(CTX->interception_enabled()) {
        std::string resolved;
        switch(resolve_gkfs_path(AT_FDCWD, path, resolved)) {
            case PathStatus::Internal:
            case PathStatus::Internal: {
                DEBUG_INFO("[GKFS] mkdir(path='{}')", resolved);
                auto ret = gkfs::syscall::gkfs_create(resolved, mode | S_IFDIR);
                DEBUG_INFO("[GKFS] mkdir(path='{}') {} --- {}", resolved, ret,
@@ -1359,6 +1359,7 @@ mkdir(const char* path, mode_t mode) {
                if(ret < 0 and errno == EEXIST)
                    return 0;
                return ret;
            }
            case PathStatus::Error:
                return -1;
            default: // External