mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-19 16:16:48 +00:00
util/mount.mergerfs.cpp: - Remove xstrdup/xrealloc wrappers entirely - Convert type, source, options, command, setuid to std::string - Replace add_arg() pointer-rewriting with shell_quote() returning std::string - Replace add_option() with simple std::string += concatenation - Fix const_cast UB on string literal assignment lib/helper.cpp: - Convert add_default_subtype local subtype_opt: malloc+snprintf+free -> std::string construction lib/mount_generic.h: - Convert fuse_mount_sys locals source/type: malloc+strcpy+strcat -> std::string - Remove 4 unnecessary free() calls (RAII cleanup) - .c_str() at mount() and fuse_mnt_add_mount() boundaries lib/mount_util.h: - Rewrite fuse_mnt_resolve_path internals using std::string: rfind/substr instead of manual pointer arithmetic, strrchr, strlen chains