[packages/papi] - fix format string warning - rel 2

baggins baggins at pld-linux.org
Thu Dec 13 12:56:20 CET 2012


commit 89fa26c87ef01902340682ed727ae3c6b4abf7d0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Dec 13 12:56:09 2012 +0100

    - fix format string warning
    - rel 2

 format-security.patch | 11 +++++++++++
 papi.spec             |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/papi.spec b/papi.spec
index 302bc08..5ae1a3c 100644
--- a/papi.spec
+++ b/papi.spec
@@ -4,7 +4,7 @@ Summary(pl.UTF-8):	Implementacja API i aplikacji Free Standards Group Open Print
 Name:		papi
 Version:	1.0
 %define	subver	beta
-Release:	0.%{subver}.1
+Release:	0.%{subver}.2
 License:	CDDL, MIT (libpapi-cups), LGPL v2+ (NSS for printers)
 Group:		Applications/Printing
 Source0:	http://downloads.sourceforge.net/openprinting/%{name}-%{version}_%{subver}.tar.bz2
@@ -12,6 +12,7 @@ Source0:	http://downloads.sourceforge.net/openprinting/%{name}-%{version}_%{subv
 Patch0:		%{name}-glibc.patch
 Patch1:		%{name}-apache2.patch
 Patch2:		%{name}-install.patch
+Patch3:		format-security.patch
 URL:		http://openprinting.sourceforge.net/
 BuildRequires:	apache-devel >= 2.0
 BuildRequires:	apr-devel >= 1:1.0
@@ -99,6 +100,7 @@ Statyczne Biblioteki Free Standards Group Open Printing API.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..f7441e4
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- papi-1.0_beta/source/mod_ipp/mod_ipp.c~	2012-12-13 12:52:47.190693398 +0100
++++ papi-1.0_beta/source/mod_ipp/mod_ipp.c	2012-12-13 12:55:02.450688626 +0100
+@@ -170,7 +170,7 @@
+ 	va_end(args);
+ 
+ #ifdef APACHE2
+-	ap_log_rerror(file, line, level, APR_SUCCESS, r, message);
++	ap_log_rerror(file, line, level, APR_SUCCESS, r, "%s", message);
+ #else
+ 	ap_log_rerror(file, line, level, r, message);
+ #endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/papi.git/commitdiff/89fa26c87ef01902340682ed727ae3c6b4abf7d0



More information about the pld-cvs-commit mailing list