forked from pool/unzip
Accepting request 920618 from Archiving
OBS-URL: https://build.opensuse.org/request/show/920618 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/unzip?expand=0&rev=46
This commit is contained in:
commit
83e26adbb0
20
unzip-initialize-the-symlink-flag.patch
Normal file
20
unzip-initialize-the-symlink-flag.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
From: Andreas Schwab <schwab@linux-m68k.org>
|
||||||
|
Subject: Initialize the symlink flag
|
||||||
|
Bug-Debian: https://bugs.debian.org/717029
|
||||||
|
X-Debian-version: 6.0-10
|
||||||
|
|
||||||
|
--- a/process.c
|
||||||
|
+++ b/process.c
|
||||||
|
@@ -1758,6 +1758,12 @@
|
||||||
|
= (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifdef SYMLINKS
|
||||||
|
+ /* Initialize the symlink flag, may be set by the platform-specific
|
||||||
|
+ mapattr function. */
|
||||||
|
+ G.pInfo->symlink = 0;
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
return PK_COOL;
|
||||||
|
|
||||||
|
} /* end function process_cdir_file_hdr() */
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package unzip-rcc
|
# spec file for package unzip-rcc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ Release: 0
|
|||||||
Summary: A program to unpack compressed files
|
Summary: A program to unpack compressed files
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
Url: http://www.info-zip.org/
|
URL: http://www.info-zip.org/
|
||||||
Source: http://sourceforge.net/projects/infozip/files/UnZip%%206.x%%20%%28latest%%29/UnZip%%206.0/%{_name}%{fileversion}.tar.gz
|
Source: http://sourceforge.net/projects/infozip/files/UnZip%%206.x%%20%%28latest%%29/UnZip%%206.0/%{_name}%{fileversion}.tar.gz
|
||||||
Source1: pre_checkin.sh
|
Source1: pre_checkin.sh
|
||||||
Patch0: unzip.dif
|
Patch0: unzip.dif
|
||||||
@ -61,7 +61,7 @@ Patch20: Fix-CVE-2014-9636-unzip-buffer-overflow.patch
|
|||||||
Patch21: unzip60-total_disks_zero.patch
|
Patch21: unzip60-total_disks_zero.patch
|
||||||
Patch22: unzip60-cfactorstr_overflow.patch
|
Patch22: unzip60-cfactorstr_overflow.patch
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Recommends: %{_name}-doc
|
Recommends: %{_name}-doc
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 9 11:30:06 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Add patch to fix issue with some files being incorrectly
|
||||||
|
detected as symlinks (boo#1190273)
|
||||||
|
+ unzip-initialize-the-symlink-flag.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 22 09:27:01 UTC 2020 - Yunhe Guo <i@guoyunhe.me>
|
Fri May 22 09:27:01 UTC 2020 - Yunhe Guo <i@guoyunhe.me>
|
||||||
|
|
||||||
|
10
unzip.spec
10
unzip.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package unzip
|
# spec file for package unzip
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ Release: 0
|
|||||||
Summary: A program to unpack compressed files
|
Summary: A program to unpack compressed files
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
Url: http://www.info-zip.org/
|
URL: http://www.info-zip.org/
|
||||||
Source: http://sourceforge.net/projects/infozip/files/UnZip%%206.x%%20%%28latest%%29/UnZip%%206.0/%{_name}%{fileversion}.tar.gz
|
Source: http://sourceforge.net/projects/infozip/files/UnZip%%206.x%%20%%28latest%%29/UnZip%%206.0/%{_name}%{fileversion}.tar.gz
|
||||||
Source1: pre_checkin.sh
|
Source1: pre_checkin.sh
|
||||||
Patch0: unzip.dif
|
Patch0: unzip.dif
|
||||||
@ -60,8 +60,9 @@ Patch19: CVE-2018-1000035.patch
|
|||||||
Patch20: Fix-CVE-2014-9636-unzip-buffer-overflow.patch
|
Patch20: Fix-CVE-2014-9636-unzip-buffer-overflow.patch
|
||||||
Patch21: unzip60-total_disks_zero.patch
|
Patch21: unzip60-total_disks_zero.patch
|
||||||
Patch22: unzip60-cfactorstr_overflow.patch
|
Patch22: unzip60-cfactorstr_overflow.patch
|
||||||
|
Patch23: unzip-initialize-the-symlink-flag.patch
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Recommends: %{_name}-doc
|
Recommends: %{_name}-doc
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
@ -107,6 +108,7 @@ functionality. This version can also extract encrypted archives.
|
|||||||
%patch20 -p1
|
%patch20 -p1
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
%patch22 -p1
|
||||||
|
%patch23 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export RPM_OPT_FLAGS="%{optflags} \
|
export RPM_OPT_FLAGS="%{optflags} \
|
||||||
|
Loading…
Reference in New Issue
Block a user