Verified Commit 06d4cda4 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

mark O_APPEND flags as not supported

parent 5b444afe
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -20,6 +20,12 @@ int adafs_open(const std::string& path, mode_t mode, int flags) {
        return -1;
    }

    if(flags & O_APPEND){
        CTX->log()->error("{}() `O_APPEND` flag is not supported", __func__);
        errno = ENOTSUP;
        return -1;
    }

    bool exists = true;
    struct stat st;
    err = adafs_stat(path, &st);