[packages/cdrkit] Fix build with -Werror=format-security
megabajt
megabajt at pld-linux.org
Thu Feb 14 21:50:58 CET 2013
commit 52581460bc0bbdcbf85ee2d598410a176a664ca1
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date: Thu Feb 14 21:50:43 2013 +0100
Fix build with -Werror=format-security
cdrkit-format-security.patch | 31 +++++++++++++++++++++++++++++++
cdrkit.spec | 2 ++
2 files changed, 33 insertions(+)
---
diff --git a/cdrkit.spec b/cdrkit.spec
index 6c18484..44e6617 100644
--- a/cdrkit.spec
+++ b/cdrkit.spec
@@ -11,6 +11,7 @@ License: GPL v2
Group: Applications/System
Source0: http://cdrkit.org/releases/%{name}-%{version}.tar.gz
# Source0-md5: efe08e2f3ca478486037b053acd512e9
+Patch0: %{name}-format-security.patch
URL: http://cdrkit.org/
BuildRequires: bzip2-devel
BuildRequires: cmake >= 2.4.3
@@ -221,6 +222,7 @@ fazer CD-ROMs de boot "El Torito".
%prep
%setup -q
+%patch0 -p1
%build
%{__make} \
diff --git a/cdrkit-format-security.patch b/cdrkit-format-security.patch
new file mode 100644
index 0000000..a32d44f
--- /dev/null
+++ b/cdrkit-format-security.patch
@@ -0,0 +1,31 @@
+--- cdrkit-1.1.11/genisoimage/genisoimage.c.formatsec 2013-02-14 21:43:12.811173895 +0100
++++ cdrkit-1.1.11/genisoimage/genisoimage.c 2013-02-14 21:46:32.356759530 +0100
+@@ -3406,7 +3406,7 @@ if (check_session == 0)
+ if (goof) {
+ fprintf(stderr, "ISO9660/Rock Ridge tree sort failed.\n");
+ if(merge_warn_msg)
+- fprintf(stderr, merge_warn_msg);
++ fputs(merge_warn_msg, stderr);
+ exit(1);
+ }
+ #ifdef UDF
+@@ -3419,7 +3419,7 @@ if (check_session == 0)
+ if (goof) {
+ fprintf(stderr, "Joliet tree sort failed. The -joliet-long switch may help you.\n");
+ if(merge_warn_msg)
+- fprintf(stderr, merge_warn_msg);
++ fputs(merge_warn_msg, stderr);
+ exit(1);
+ }
+ /*
+--- cdrkit-1.1.11/genisoimage/tree.c.formatsec 2013-02-14 21:48:17.412857059 +0100
++++ cdrkit-1.1.11/genisoimage/tree.c 2013-02-14 21:48:36.219421842 +0100
+@@ -647,7 +647,7 @@ got_valid_name:
+ fprintf(stderr, "Unable to sort directory %s\n",
+ this_dir->whole_name);
+ if(merge_warn_msg)
+- fprintf(stderr, merge_warn_msg);
++ fputs(merge_warn_msg, stderr);
+ exit(1);
+ }
+ /*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cdrkit.git/commitdiff/52581460bc0bbdcbf85ee2d598410a176a664ca1
More information about the pld-cvs-commit
mailing list