diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-08-11 20:14:55 +0200 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-08-11 20:14:55 +0200 |
commit | c869f3132294ba0f59de9af2c5e39be730051b48 (patch) | |
tree | 0cbba621410f4a153a2317ffe20da918a8ebd073 | |
parent | 50d9158141bede9a0f209ea11ec807880dacfec9 (diff) |
fuse_lib_init(): don't set FUSE_CAP_EXPORT_SUPPORT unconditionally
FreeBSD kernel does not support this.
-rw-r--r-- | lib/fuse.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2509,7 +2509,8 @@ static void fuse_lib_init(void *data, struct fuse_conn_info *conn) struct fuse *f = (struct fuse *) data; fuse_create_context(f); - conn->want |= FUSE_CAP_EXPORT_SUPPORT; + if(conn->capable & FUSE_CAP_EXPORT_SUPPORT) + conn->want |= FUSE_CAP_EXPORT_SUPPORT; fuse_fs_init(f->fs, conn, &f->conf); } |