import sed-4.5-2.el8

This commit is contained in:
CentOS Sources 2020-07-28 05:20:32 -04:00 committed by Stepan Oksanichenko
parent a607a2202e
commit 4dbf2a71b8
2 changed files with 20 additions and 1 deletions

13
SOURCES/sed-fuse.patch Normal file
View File

@ -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)

View File

@ -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 <jamartis@redhat.com> - 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 <jamartis@redhat.com> - 4.5-1
- Rebase to 4.5
- Drop patch from 4.4-4 (is included in the upstream archive)