[fapg] Patch for "-Werror=format-security" build (#1037058). (Fix bogus date in %changelog.)

Michael Schwendt mschwendt at fedoraproject.org
Wed Apr 9 21:07:39 UTC 2014


commit 1b7b44475b6941806c79e8b10a10b7bafce21e36
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Wed Apr 9 23:07:26 2014 +0200

    Patch for "-Werror=format-security" build (#1037058).
    (Fix bogus date in %changelog.)

 fapg-0.41-format-security.patch |   21 +++++++++++++++++++++
 fapg.spec                       |   11 +++++++++--
 2 files changed, 30 insertions(+), 2 deletions(-)
---
diff --git a/fapg-0.41-format-security.patch b/fapg-0.41-format-security.patch
new file mode 100644
index 0000000..663b4b0
--- /dev/null
+++ b/fapg-0.41-format-security.patch
@@ -0,0 +1,21 @@
+diff -Nurb --strip-trailing-cr -Nur fapg-0.41-orig/fapg.c fapg-0.41/fapg.c
+--- fapg-0.41-orig/fapg.c	2008-03-10 19:18:04.000000000 +0100
++++ fapg-0.41/fapg.c	2014-04-09 23:00:44.000000000 +0200
+@@ -425,7 +425,7 @@
+ {
+     const char *c = path;
+ 
+-    printf(prefix);             /* we must not modify this part */
++    printf("%s",prefix);             /* we must not modify this part */
+     if(*c == '.' && c[1] == '/') {      /* remove leading "./" when parsing current directory */
+         c += 2;
+         /* maybe there follow many slashes */
+@@ -443,7 +443,7 @@
+ void print_path(const char *path)
+ {
+     const char *c = path;
+-    printf(prefix);
++    printf("%s",prefix);
+     /* skip leading "./" when parsing current directory */
+     if(*c == '.' && *(c + 1) == '/') {
+         c += 2;
diff --git a/fapg.spec b/fapg.spec
index d17d5a1..c59a02b 100644
--- a/fapg.spec
+++ b/fapg.spec
@@ -1,6 +1,6 @@
 Name:       fapg
 Version:    0.41
-Release:    7%{?dist}
+Release:    8%{?dist}
 License:    GPLv2+
 Summary:    Fast Audio Playlist Generator
 URL:        http://royale.zerezo.com/fapg/
@@ -9,6 +9,9 @@ Source:     http://royale.zerezo.com/fapg/%{name}-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: uriparser-devel
 
+# for https://bugzilla.redhat.com/1037058
+Patch0: fapg-0.41-format-security.patch
+
 %description
 FAPG means Fast Audio Playlist Generator.
 It is a tool to generate list of audio files (Wav, MP3, Ogg, etc)
@@ -25,6 +28,7 @@ all the known formats.
 
 %prep
 %setup -q 
+%patch0 -p1 -b .format-security
 
 %build
 %configure
@@ -44,6 +48,9 @@ rm -rf %{buildroot}
 %{_mandir}/man1/%{name}.1*
 
 %changelog
+* Wed Apr  9 2014 Michael Schwendt <mschwendt at fedoraproject.org> - 0.41-8
+- Patch for "-Werror=format-security" build (#1037058).
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.41-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
@@ -59,7 +66,7 @@ rm -rf %{buildroot}
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.41-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
-* Fri Oct 02 2008 Paulo Roma <roma at lcg.ufrj.br> 0.41-2
+* Thu Oct 02 2008 Paulo Roma <roma at lcg.ufrj.br> 0.41-2
 - Fixed license.
 
 * Sat May 17 2008 Paulo Roma <roma at lcg.ufrj.br> 0.41-1


More information about the scm-commits mailing list