From c27bbcec3d4ef6cbb279d589d2bf73dc595eb51e Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Sat, 17 May 2025 23:52:47 +0200 Subject: Make conn->want/want_ext conversion non fatal there are too many issues with conn->want and conn->want_ext conversion, for now just log a warning, but setting both flags is now not fatal anymore. Signed-off-by: Bernd Schubert --- lib/fuse_i.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/fuse_i.h') diff --git a/lib/fuse_i.h b/lib/fuse_i.h index 48b8294..bf5e2ca 100644 --- a/lib/fuse_i.h +++ b/lib/fuse_i.h @@ -245,11 +245,8 @@ static inline int convert_to_conn_want_ext(struct fuse_conn_info *conn, */ if (conn->want != want_default && fuse_lower_32_bits(conn->want_ext) != conn->want) { - if (conn->want_ext != want_ext_default) { - fuse_log(FUSE_LOG_ERR, - "fuse: both 'want' and 'want_ext' are set\n"); + if (conn->want_ext != want_ext_default) return -EINVAL; - } /* high bits from want_ext, low bits from want */ conn->want_ext = fuse_higher_32_bits(conn->want_ext) | -- cgit v1.2.3