]> git.pld-linux.org Git - packages/apcupsd.git/commitdiff
- fix format string error auto/th/apcupsd-3.14.10-3
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jul 2013 18:19:41 +0000 (20:19 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jul 2013 18:19:41 +0000 (20:19 +0200)
- rel 3

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

index 16f1715bd90f196d608fbe46fabc028f0ef31356..5409d5b225c5cb50eea580eaec5c446283467da6 100644 (file)
@@ -11,7 +11,7 @@ Summary:      Power management software for APC UPS hardware
 Summary(pl.UTF-8):     Oprogramowanie do zarządzania energią dla UPS-ów APC
 Name:          apcupsd
 Version:       3.14.10
-Release:       2
+Release:       3
 License:       GPL v2
 Group:         Networking/Daemons
 Source0:       http://downloads.sourceforge.net/apcupsd/%{name}-%{version}.tar.gz
@@ -21,13 +21,14 @@ Source2:    %{name}.logrotate
 Source3:       %{name}.sysconfig
 Patch0:                %{name}-configure.patch
 Patch1:                %{name}-pcnet-seconds.patch
+Patch2:                format-security.patch
 URL:           http://www.apcupsd.com/
 %{?with_gapcmon:BuildRequires: GConf2-devel >= 2.0}
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: gd-devel
 %{?with_gapcmon:BuildRequires: gtk+2-devel >= 2:2.4.0}
-BuildRequires: man
+BuildRequires: man-db
 %{?with_snmp:BuildRequires:    net-snmp-devel}
 BuildRequires: pkgconfig
 BuildRequires: rpmbuild(macros) >= 1.268
@@ -89,6 +90,7 @@ serwera NIS. Status każdego UPS-a przedstawia ikona.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 for i in configure.in aclocal.m4 config.h.in; do install autoconf/$i .;done
 cp -f %{_datadir}/automake/config.sub autoconf
 
diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..569e290
--- /dev/null
@@ -0,0 +1,19 @@
+--- apcupsd-3.14.10/src/gapcmon/gapcmon.c~     2008-09-16 06:58:20.000000000 +0200
++++ apcupsd-3.14.10/src/gapcmon/gapcmon.c      2013-07-14 20:18:41.520640348 +0200
+@@ -2883,15 +2883,9 @@
+ static void gapc_util_log_app_msg(gchar * pch_func, gchar * pch_topic,
+    gchar * pch_emsg)
+ {
+-   gchar *pch = NULL;
+-
+    g_return_if_fail(pch_func != NULL);
+-   pch = g_strdup_printf("%s(%s) emsg=%s", pch_func, pch_topic, pch_emsg);
+-
+-   g_message(pch);
+-
+-   g_free(pch);
++   g_message("%s(%s) emsg=%s", pch_func, pch_topic, pch_emsg);
+    return;
+ }
This page took 0.047957 seconds and 4 git commands to generate.