From 5c0cb52d617417574a920f41c256848abf477e978e9ca6ac63952d0cca721378 Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Fri, 5 Aug 2011 12:03:53 +0000 Subject: [PATCH] - Don't call isprint (bnc#620483). OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=19 --- unzip-dont_call_isprint.patch | 15 +++++++++++++++ unzip.changes | 5 +++++ unzip.spec | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 unzip-dont_call_isprint.patch diff --git a/unzip-dont_call_isprint.patch b/unzip-dont_call_isprint.patch new file mode 100644 index 0000000..975a737 --- /dev/null +++ b/unzip-dont_call_isprint.patch @@ -0,0 +1,15 @@ +Author: Suren A. Chilingaryan + +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)))) { diff --git a/unzip.changes b/unzip.changes index df3cf03..a1ceca5 100644 --- a/unzip.changes +++ b/unzip.changes @@ -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 diff --git a/unzip.spec b/unzip.spec index 866c53a..5bd954e 100644 --- a/unzip.spec +++ b/unzip.spec @@ -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 \