[packages/netatalk] - fix format string warnings - rel 3
baggins
baggins at pld-linux.org
Fri Dec 7 08:36:14 CET 2012
commit 2c19ccbaea67b9fe8985174f3fe6c6dbec2e1b2e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Dec 7 08:35:37 2012 +0100
- fix format string warnings
- rel 3
format-security.patch | 11 +++++++++++
netatalk.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/netatalk.spec b/netatalk.spec
index fb51635..4c56a41 100644
--- a/netatalk.spec
+++ b/netatalk.spec
@@ -5,7 +5,7 @@ Summary(pt_BR.UTF-8): Programas para rede AppleTalk
Summary(zh_CN.UTF-8): Appletalk 和 Appleshare/IP 服务工具
Name: netatalk
Version: 3.0
-Release: 2
+Release: 3
Epoch: 2
License: BSD
Group: Daemons
@@ -16,6 +16,7 @@ Source2: %{name}.pamd
Source3: %{name}.sysconfig
Source4: ICDumpSuffixMap
Patch0: %{name}-build.patch
+Patch1: format-security.patch
URL: http://www.umich.edu/~rsug/netatalk/
BuildRequires: autoconf
BuildRequires: automake
@@ -70,6 +71,7 @@ aplicativos baseados no protocolo AppleTalk.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
rm -f missing
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..e635045
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- netatalk-3.0/etc/afpd/afp_mdns.c.orig 2012-12-07 08:32:57.271193396 +0100
++++ netatalk-3.0/etc/afpd/afp_mdns.c 2012-12-07 08:34:31.561190070 +0100
+@@ -232,7 +232,7 @@
+ LOG(log_info, logtype_afpd, "Registering server '%s' with model '%s'",
+ dsi->bonjourname, obj->options.mimicmodel);
+ TXTRecordCreate(&txt_devinfo, 0, NULL);
+- TXTRecordPrintf(&txt_devinfo, "model=%s", obj->options.mimicmodel);
++ TXTRecordPrintf(&txt_devinfo, "model=%s", "%s", obj->options.mimicmodel);
+ error = DNSServiceRegister(&svc_refs[svc_ref_count++],
+ 0, // no flags
+ 0, // all network interfaces
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/netatalk.git/commitdiff/2c19ccbaea67b9fe8985174f3fe6c6dbec2e1b2e
More information about the pld-cvs-commit
mailing list