Skip to content

Commit

Permalink
Merge pull request #317 from giuseppe/fix-capable-check
Browse files Browse the repository at this point in the history
main: fix check for FUSE_CAP_POSIX_ACL
  • Loading branch information
rhatdan authored Aug 9, 2021
2 parents 4683d9e + b5967c7 commit c2a2b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,10 @@ ovl_init (void *userdata, struct fuse_conn_info *conn)
if ((conn->capable & FUSE_CAP_WRITEBACK_CACHE) == 0)
lo->writeback = 0;

if ((conn->capable & FUSE_CAP_POSIX_ACL) == 0)
if (conn->capable & FUSE_CAP_POSIX_ACL)
conn->want |= FUSE_CAP_POSIX_ACL;

conn->want |= FUSE_CAP_DONT_MASK | FUSE_CAP_SPLICE_READ | FUSE_CAP_SPLICE_WRITE | FUSE_CAP_SPLICE_MOVE | FUSE_CAP_POSIX_ACL;
conn->want |= FUSE_CAP_DONT_MASK | FUSE_CAP_SPLICE_READ | FUSE_CAP_SPLICE_WRITE | FUSE_CAP_SPLICE_MOVE;
if (lo->writeback)
conn->want |= FUSE_CAP_WRITEBACK_CACHE;
}
Expand Down

0 comments on commit c2a2b92

Please sign in to comment.