From 0209af1da78cb30532a1c4a3c86550e6597f9097 Mon Sep 17 00:00:00 2001 From: kouwq Date: Wed, 24 Jul 2024 11:30:46 +0800 Subject: [PATCH] fix missing fuse_loop_cfg_destroy() in fuse_session_loop_mt_31 (cherry picked from commit 707cea8e640a2777a70f755d2b02bc0a518dbd5e) --- ..._loop_cfg_destroy-in-fuse_session_lo.patch | 39 +++++++++++++++++++ fuse3.spec | 6 ++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 0003-fix-missing-fuse_loop_cfg_destroy-in-fuse_session_lo.patch diff --git a/0003-fix-missing-fuse_loop_cfg_destroy-in-fuse_session_lo.patch b/0003-fix-missing-fuse_loop_cfg_destroy-in-fuse_session_lo.patch new file mode 100644 index 0000000..6a2933f --- /dev/null +++ b/0003-fix-missing-fuse_loop_cfg_destroy-in-fuse_session_lo.patch @@ -0,0 +1,39 @@ +From b701673e7429336248c307c93c2c26f443719255 Mon Sep 17 00:00:00 2001 +From: Bernd Schubert +Date: Sun, 5 May 2024 13:09:56 +0200 +Subject: [PATCH] Fix missing fuse_loop_cfg_destroy() in + fuse_session_loop_mt_31 (#944) + +All credits to Miklos Szeredi for spotting +this. + +Signed-off-by: Bernd Schubert + +--- + lib/fuse_loop_mt.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/lib/fuse_loop_mt.c b/lib/fuse_loop_mt.c +index 0200d73..bfe33ca 100644 +--- a/lib/fuse_loop_mt.c ++++ b/lib/fuse_loop_mt.c +@@ -419,10 +419,15 @@ int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd); + FUSE_SYMVER("fuse_session_loop_mt_31", "fuse_session_loop_mt@FUSE_3.0") + int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd) + { ++ int err; + struct fuse_loop_config *config = fuse_loop_cfg_create(); + if (clone_fd > 0) + fuse_loop_cfg_set_clone_fd(config, clone_fd); +- return fuse_session_loop_mt_312(se, config); ++ err = fuse_session_loop_mt_312(se, config); ++ ++ fuse_loop_cfg_destroy(config); ++ ++ return err; + } + + struct fuse_loop_config *fuse_loop_cfg_create(void) +-- +2.27.0 + diff --git a/fuse3.spec b/fuse3.spec index dad4a88..f126f4e 100644 --- a/fuse3.spec +++ b/fuse3.spec @@ -2,7 +2,7 @@ Name: fuse3 Version: %{fuse3ver} -Release: 1 +Release: 2 Summary: User space File System of fuse3 License: GPL+ and LGPLv2+ URL: http://fuse.sf.net @@ -11,6 +11,7 @@ Source1: fuse.conf Patch1: 0001-fix-chown-and-mknod-failed.patch Patch2: 0002-revert-fuse_daemonize-chdir-to-even-if-not-run.patch +Patch3: 0003-fix-missing-fuse_loop_cfg_destroy-in-fuse_session_lo.patch BuildRequires: libselinux-devel, pkgconfig, systemd-udev, meson, fdupes BuildRequires: autoconf, automake, libtool, gettext-devel, ninja-build @@ -101,6 +102,9 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir} %{_mandir}/man8/* %changelog +* Wed Jul 24 2024 kouwenqi -3.16.2-2 +- Fix missing fuse_loop_cfg_destroy() in fuse_session_loop_mt_31 (#944) + * Tue Jan 30 2024 yangyun -3.16.2-1 - upgrade to 3.16.2 - fix some issues (see: https://github.com/libfuse/libfuse/releases) -- Gitee