diff --git a/SOURCES/sed-fuse.patch b/SOURCES/sed-fuse.patch new file mode 100644 index 0000000..960c3be --- /dev/null +++ b/SOURCES/sed-fuse.patch @@ -0,0 +1,13 @@ +diff --git a/sed/utils.c b/sed/utils.c +index 4028d98..2e74654 100644 +--- a/sed/utils.c ++++ b/sed/utils.c +@@ -181,7 +181,7 @@ ck_mkstemp (char **p_filename, const char *tmpdir, + so unauthorized users cannot nip in before the file is ready. + + mkstemp forces O_BINARY on cygwin, so use mkostemp instead. */ +- save_umask = umask (0700); ++ save_umask = umask (0077); + fd = mkostemp (template, 0); + umask (save_umask); + if (fd == -1) diff --git a/SPECS/sed.spec b/SPECS/sed.spec index 607d937..2e42adf 100644 --- a/SPECS/sed.spec +++ b/SPECS/sed.spec @@ -6,7 +6,7 @@ Summary: A GNU stream text editor Name: sed Version: 4.2.2 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv3+ Group: Applications/Text URL: http://sed.sourceforge.net/ @@ -14,6 +14,7 @@ Source0: ftp://ftp.gnu.org/pub/gnu/sed/sed-%{version}.tar.bz2 Source1: http://sed.sourceforge.net/sedfaq.txt Patch0: sed-4.2.2-binary_copy_args.patch Patch1: mbsubstitution.patch +Patch2: sed-fuse.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: glibc-devel, libselinux-devel Requires(post): /sbin/install-info @@ -33,6 +34,7 @@ specified in a script file or from the command line. %setup -q %patch0 -p1 -b .copy %patch1 -p1 -R -b .copy +%patch2 -p1 %build %configure --without-included-regex @@ -73,6 +75,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_mandir}/man*/* %changelog +* Mon May 18 2020 Jakub Martisko - 4.2.2-7 +- Fix: "in-place edits on FUSE filesystems create files with all-zero mode bits" + Resolves: #1836317 + * Tue Jul 30 2019 Jakub Martisko - 4.2.2-6 - Fix an issue, where some multibyte sequence substitutions were not applied Resolves: #1733877