From 41f535c3f6a72283bad544cb0fa2a158c5600784 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 03 2020 11:48:14 +0000 Subject: import sed-4.5-2.el8 --- diff --git a/SOURCES/sed-fuse.patch b/SOURCES/sed-fuse.patch new file mode 100644 index 0000000..78a5640 --- /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, + /* The ownership might change, so omit some permissions at first + so unauthorized users cannot nip in before the file is ready. + mkstemp forces O_BINARY on cygwin, so use mkostemp instead. */ +- mode_t save_umask = umask (0700); ++ mode_t save_umask = umask (0077); + int fd = mkostemp (template, 0); + umask (save_umask); + if (fd == -1) diff --git a/SPECS/sed.spec b/SPECS/sed.spec index feb5da8..6ba8402 100644 --- a/SPECS/sed.spec +++ b/SPECS/sed.spec @@ -3,7 +3,7 @@ Summary: A GNU stream text editor Name: sed Version: 4.5 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ Group: Applications/Text URL: http://sed.sourceforge.net/ @@ -11,6 +11,7 @@ Source0: ftp://ftp.gnu.org/pub/gnu/sed/sed-%{version}.tar.xz Source1: http://sed.sourceforge.net/sedfaq.txt Patch0: sed-4.2.2-binary_copy_args.patch Patch1: sed-selinux.patch +Patch2: sed-fuse.patch BuildRequires: glibc-devel, libselinux-devel, libacl-devel, automake, autoconf BuildRequires: perl-Getopt-Long Requires(post): /sbin/install-info @@ -32,6 +33,7 @@ specified in a script file or from the command line. %setup -q %patch0 -p1 -b .copy #%patch1 -p1 -b .selinux +%patch2 -p1 %build %configure --without-included-regex @@ -71,6 +73,10 @@ fi %{_mandir}/man*/* %changelog +* Mon May 18 2020 Jakub Martisko - 4.5-2 +- fix "in-place edits on FUSE filesystems create files with all-zero mode bits" +- Resolves: #1835761 + * Mon Apr 09 2018 Jakub Martisko - 4.5-1 - Rebase to 4.5 - Drop patch from 4.4-4 (is included in the upstream archive)