summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Evgeny Kapun2026-02-17 06:58:47 +0000
committerGravatar Evgeny Kapun2026-02-17 06:58:47 +0000
commit903a29c7424028304aeef137d7c24e176b73fccf (patch)
tree814c086d3c06e30fa3c3584c5108b8b295903f71 /src/ifuse.c
parent8f8e12ee196543916650d5618297a6bf53783747 (diff)
downloadifuse-903a29c7424028304aeef137d7c24e176b73fccf.tar.gz
ifuse-903a29c7424028304aeef137d7c24e176b73fccf.tar.bz2
Fix FUSE capability flags set during initialization.
The intent behind the line "conn->want &= FUSE_CAP_ASYNC_READ;" was likely to clear the FUSE_CAP_ASYNC_READ flag, but it actually clears all the other flags instead. This commit changes it to clear only that flag. Fixes #107
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index f5f7640..78135cd 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -395,7 +395,7 @@ void *ifuse_init(struct fuse_conn_info *conn, struct fuse_config *cfg)
{
afc_client_t afc = NULL;
- conn->want &= FUSE_CAP_ASYNC_READ;
+ conn->want &= ~FUSE_CAP_ASYNC_READ;
if (house_arrest) {
afc_client_new_from_house_arrest_client(house_arrest, &afc);