diff --git a/0024-fuse2fs-don-t-try-to-mount-after-option-parsing-errors.patch b/0024-fuse2fs-don-t-try-to-mount-after-option-parsing-errors.patch new file mode 100644 index 0000000000000000000000000000000000000000..9bc7fc409576d11cbd255f3e64eedb5f2d665355 --- /dev/null +++ b/0024-fuse2fs-don-t-try-to-mount-after-option-parsing-errors.patch @@ -0,0 +1,40 @@ +From e7774d8fef39d16eb96f1e55cf2f33d3acb14d88 Mon Sep 17 00:00:00 2001 +From: "Darrick J. Wong" +Date: Sun, 6 Jul 2025 11:32:50 -0700 +Subject: [PATCH] fuse2fs: don't try to mount after option parsing errors + +Actually check the outcome of parsing CLI options before trying to +mount. + +Signed-off-by: Darrick J. Wong +Link: https://lore.kernel.org/r/175182663113.1984706.10460295274868313866.stgit@frogsfrogsfrogs +Signed-off-by: Theodore Ts'o +--- + misc/fuse2fs.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c +index 0dc77ea..d0633bb 100644 +--- a/misc/fuse2fs.c ++++ b/misc/fuse2fs.c +@@ -3731,13 +3731,15 @@ int main(int argc, char *argv[]) + errcode_t err; + char *logfile; + char extra_args[BUFSIZ]; +- int ret = 0; ++ int ret; + int flags = EXT2_FLAG_64BITS | EXT2_FLAG_THREADS | EXT2_FLAG_EXCLUSIVE; + + memset(&fctx, 0, sizeof(fctx)); + fctx.magic = FUSE2FS_MAGIC; + +- fuse_opt_parse(&args, &fctx, fuse2fs_opts, fuse2fs_opt_proc); ++ ret = fuse_opt_parse(&args, &fctx, fuse2fs_opts, fuse2fs_opt_proc); ++ if (ret) ++ exit(1); + if (fctx.device == NULL) { + fprintf(stderr, "Missing ext4 device/image\n"); + fprintf(stderr, "See '%s -h' for usage\n", argv[0]); +-- +2.33.0 + diff --git a/e2fsprogs.spec b/e2fsprogs.spec index 377aa9e227cb3960497e785a834815e361e5fbbf..94a2743eaeeacf117a09ea3d04a90cb11515a2d9 100644 --- a/e2fsprogs.spec +++ b/e2fsprogs.spec @@ -1,6 +1,6 @@ Name: e2fsprogs Version: 1.47.0 -Release: 11 +Release: 12 Summary: Second extended file system management tools License: GPLv2+ and LGPLv2 and MIT URL: http://e2fsprogs.sourceforge.net/ @@ -30,6 +30,7 @@ Patch20: 0020-e2fsck-fix-handling-of-a-invalid-symlink-in-an-inlin.patch Patch21: 0021-e2fsprogs-modify-dumpe2fs-to-report-free-block-range.patch Patch22: 0022-resize2fs-use-Direct-I-O-when-reading-the-superblock.patch Patch23: 0023-libext2fs-fix-potential-divide-by-zero-bug-caused-by.patch +Patch24: 0024-fuse2fs-don-t-try-to-mount-after-option-parsing-errors.patch BuildRequires: gcc pkgconfig texinfo BuildRequires: fuse-devel libblkid-devel libuuid-devel @@ -170,6 +171,9 @@ exit 0 %{_mandir}/man8/* %changelog +* Wed Nov 19 2025 xuchenchen - 1.47.0-12 +- fuse2fs: don't try to mount after option parsing errors + * Wed Oct 22 2025 liuh - 1.47.0-11 - libext2fs: fix potential divide by zero bug caused by a lxcfs bug