[packages/mono] Fix for build with -Werror=format-security
megabajt
megabajt at pld-linux.org
Sun Sep 30 07:50:39 CEST 2012
commit d32c460a7c9613597323d94d2a9d161dfe17b46a
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date: Sun Sep 30 07:48:49 2012 +0200
Fix for build with -Werror=format-security
mono-format-security.patch | 11 +++++++++++
mono.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/mono.spec b/mono.spec
index 2c1c841..674305b 100644
--- a/mono.spec
+++ b/mono.spec
@@ -34,6 +34,7 @@ Patch5: %{name}-pc.patch
Patch6: %{name}-ARG_MAX.patch
Patch7: %{name}-fix-null-requirement.patch
Patch8: %{name}-docs-build.patch
+Patch9: %{name}-format-security.patch
URL: http://www.mono-project.com/
%if %(test -r /dev/random; echo $?)
BuildRequires: ACCESSIBLE_/dev/random
@@ -227,6 +228,7 @@ oraz dotGNU.
%patch6 -p1
%patch7 -p1
%patch8 -p1
+%patch9 -p1
# for jay
cat >> mcs/build/config-default.make <<'EOF'
diff --git a/mono-format-security.patch b/mono-format-security.patch
new file mode 100644
index 0000000..7f72576
--- /dev/null
+++ b/mono-format-security.patch
@@ -0,0 +1,11 @@
+--- mono-2.11.4/support/syslog.c.format 2012-09-30 07:43:34.007137644 +0200
++++ mono-2.11.4/support/syslog.c 2012-09-30 07:43:43.137547773 +0200
+@@ -34,7 +34,7 @@ Mono_Posix_Syscall_closelog (void)
+ int
+ Mono_Posix_Syscall_syslog (int priority, const char* message)
+ {
+- syslog (priority, message);
++ syslog (priority, "%s", message);
+ return 0;
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mono.git/commitdiff/d32c460a7c9613597323d94d2a9d161dfe17b46a
More information about the pld-cvs-commit
mailing list