SHA256
3
0
forked from pool/sed

Accepting request 749899 from Base:System

OBS-URL: https://build.opensuse.org/request/show/749899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sed?expand=0&rev=33
This commit is contained in:
Dominique Leuenberger 2019-12-02 10:26:05 +00:00 committed by Git OBS Bridge
commit c9047f1a46
3 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,14 @@
diff --git a/gnulib-tests/test-canonicalize-lgpl.c b/gnulib-tests/test-canonicalize-lgpl.c
index 4cec490..c91aa1f 100644
--- a/gnulib-tests/test-canonicalize-lgpl.c
+++ b/gnulib-tests/test-canonicalize-lgpl.c
@@ -71,9 +71,6 @@ main (void)
ASSERT (result == NULL);
ASSERT (errno == ENOENT);
errno = 0;
- result = canonicalize_file_name (null_ptr ());
- ASSERT (result == NULL);
- ASSERT (errno == EINVAL);
}
/* Check that a non-directory with trailing slash yields NULL. */

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 20 09:09:47 UTC 2019 - Martin Liška <mliska@suse.cz>
- Add disable-null-ptr-argument.patch in order to fix
boo#1157218.
-------------------------------------------------------------------
Thu Sep 19 11:48:38 UTC 2019 - Ludwig Nussel <lnussel@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package sed
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -28,6 +28,7 @@ Source1: https://ftp.gnu.org/gnu/sed/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring
# PATCH-FIX-SLE sed-dont_close_twice.patch bnc@880817 tcech@suse.cz -- Fix double close.
Patch0: sed-dont_close_twice.patch
Patch1: disable-null-ptr-argument.patch
BuildRequires: libacl-devel
BuildRequires: libselinux-devel
Requires(post): %{install_info_prereq}
@ -45,6 +46,7 @@ occurrences of a string within a file.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security