Accepting request 239474 from Base:System
1 OBS-URL: https://build.opensuse.org/request/show/239474 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sed?expand=0&rev=21
This commit is contained in:
commit
c2195c842c
16
sed-dont_close_twice.patch
Normal file
16
sed-dont_close_twice.patch
Normal file
@ -0,0 +1,16 @@
|
||||
http://lists.gnu.org/archive/html/bug-gnu-utils/2014-06/msg00000.html
|
||||
|
||||
Index: sed-4.2.2/sed/utils.c
|
||||
===================================================================
|
||||
--- sed-4.2.2.orig/sed/utils.c
|
||||
+++ sed-4.2.2/sed/utils.c
|
||||
@@ -298,8 +298,8 @@ ck_fclose(stream)
|
||||
{
|
||||
if (!stream || stream == cur->fp)
|
||||
{
|
||||
- do_ck_fclose (cur->fp);
|
||||
prev->link = cur->link;
|
||||
+ do_ck_fclose (cur->fp);
|
||||
free(cur->name);
|
||||
free(cur);
|
||||
}
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 09:48:33 UTC 2014 - tcech@suse.cz
|
||||
|
||||
- sed-dont_close_twice.patch (bnc#880817)
|
||||
when closing fails, file is attempted to be closed again
|
||||
patch based of Neil Brown's recommendation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 5 12:08:28 UTC 2013 - idonmez@suse.com
|
||||
|
||||
|
5
sed.spec
5
sed.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package sed
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -26,6 +26,8 @@ Url: http://www.gnu.org/software/sed/
|
||||
Source: ftp://ftp.gnu.org/gnu/sed/%{name}-%{version}.tar.bz2
|
||||
Source1: %{name}-%{version}.tar.bz2.sig
|
||||
Source2: %{name}.keyring
|
||||
# PATCH-FIX-SLE sed-dont_close_twice.patch bnc@880817 tcech@suse.cz -- Fix double close.
|
||||
Patch: sed-dont_close_twice.patch
|
||||
# Use rpmbuild -D 'VERIFY_SIG 1' to verify signature during build or run one-shot check by "gpg-offline --verify --package=sed sed-*.sig".
|
||||
%if 0%{?VERIFY_SIG}
|
||||
BuildRequires: gpg-offline
|
||||
@ -47,6 +49,7 @@ occurrences of a string within a file.
|
||||
%gpg_verify %{S:1}
|
||||
%endif
|
||||
%setup -q
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security
|
||||
|
Loading…
Reference in New Issue
Block a user