- Don't call isprint (bnc#620483).

OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=19
This commit is contained in:
Philipp Thomas 2011-08-05 12:03:53 +00:00 committed by Git OBS Bridge
parent 2c29d35d9f
commit 5c0cb52d61
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,15 @@
Author: Suren A. Chilingaryan <csa@dside.dyndns.org>
Index: extract.c
===================================================================
--- extract.c.orig 2009-03-14 04:32:52.000000000 +0300
+++ extract.c 2010-07-07 17:29:52.000000000 +0400
@@ -2596,7 +2596,7 @@ char *fnfilter(raw, space, size) /* co
*/
# define UZ_FNFILTER_REPLACECHAR '?'
# endif
- if (!isprint(*r)) {
+ if (*r < 32) { //(!isprint(*r)) {
if (*r < 32) {
/* ASCII control codes are escaped as "^{letter}". */
if (se != NULL && (s > (space + (size-4)))) {

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Aug 5 13:57:24 CEST 2011 - pth@suse.de
- Don't call isprint (bnc#620483).
-------------------------------------------------------------------
Mon May 23 14:21:44 UTC 2011 - lnussel@suse.de

View File

@ -35,6 +35,7 @@ Patch5: unzip-no_file_name_translation.patch
Patch8: unzip-open_missing_mode.patch
Patch10: unzip-5.52-use_librcc.patch
Patch11: unzip-no-build-date.patch
Patch12: unzip-dont_call_isprint.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: librcc-devel
Suggests: librcc0
@ -62,6 +63,7 @@ Authors:
%patch8
%patch10
%patch11
%patch12
%build
export RPM_OPT_FLAGS="%optflags \