]> git.pld-linux.org Git - packages/netatalk.git/commitdiff
- fix format string warnings auto/th/netatalk-3.0-3
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 7 Dec 2012 07:35:37 +0000 (08:35 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 7 Dec 2012 07:35:37 +0000 (08:35 +0100)
- rel 3

format-security.patch [new file with mode: 0644]
netatalk.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..e635045
--- /dev/null
@@ -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
index fb516355ef769f636cc4f9b692ce284145618a0a..4c56a41bc947c914b5373f878e079c9b0af466ee 100644 (file)
@@ -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
This page took 0.099452 seconds and 4 git commands to generate.