From b5967c7e8c21a5240e493d21179691604785a261 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 9 Aug 2021 11:36:00 +0200 Subject: [PATCH] main: fix check for FUSE_CAP_POSIX_ACL fix the check for FUSE_CAP_POSIX_ACL. commit 0a659e75ef61456bda1fa4b0b30117296f66f4fe introduced the issue. It is needed to run fuse-overlayfs on RHEL 7 kernels. Signed-off-by: Giuseppe Scrivano --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 9747a7a..168233d 100644 --- a/main.c +++ b/main.c @@ -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; }