Verified Commit c02bc987 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

bugfix: log error on mkdirat interception

mkdirat is not yet supported at the moment.

As usual we should log error and return ENOTSUP
parent 9970ab60
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -305,8 +305,8 @@ int mkdirat(int dirfd, const char* path, mode_t mode) __THROW {
        std::string rel_path(path);
        if (CTX->relativize_path(rel_path)) {
            // not implemented
            CTX->log()->trace("{}() not implemented.", __func__);
            errno = EBUSY;
            CTX->log()->error("{}() not implemented.", __func__);
            errno = ENOTSUP;
            return -1;
        }
    }