commit 60104941ded82aa10649e16d474fd337c6bd4b24
Author: Jan Rękorajski <[email protected]>
Date:   Tue Aug 18 22:50:15 2015 +0900

    - fix format string error
    - rel 4

 format-security.patch | 11 +++++++++++
 hdapsd.spec           |  6 ++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/hdapsd.spec b/hdapsd.spec
index 505891b..8205352 100644
--- a/hdapsd.spec
+++ b/hdapsd.spec
@@ -1,5 +1,5 @@
 %define                snap    20090401
-%define                rel     3
+%define                rel     4
 Summary:       HardDrive Active Protection System
 Summary(pl.UTF-8):     HDAPS - system aktywnej ochrony dysku twardego
 Name:          hdapsd
@@ -11,12 +11,13 @@ Source0:    
http://downloads.sourceforge.net/hdaps/%{name}-20090401.tar.gz
 # Source0-md5: 897cee8b0192febd127470f3e9506aeb
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
+Patch0:                format-security.patch
 URL:           http://hdaps.sourceforge.net/
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts >= 0.4.3.0
 # relies on kernel hdaps driver, which depends on CONFIG_X86
-ExclusiveArch: %{ix86} %{x8664}
+ExclusiveArch: %{ix86} %{x8664} x32
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -44,6 +45,7 @@ uderzeniu o podłoże.
 
 %prep
 %setup -q -n %{name}-%{snap}
+%patch0 -p1
 
 %build
 %configure
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..44e8ff8
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- hdapsd-20090401/src/hdapsd.c~      2009-04-02 06:55:59.000000000 +0900
++++ hdapsd-20090401/src/hdapsd.c       2015-08-18 22:48:48.993706186 +0900
+@@ -82,7 +82,7 @@
+       va_end(ap);
+ 
+       if (dosyslog)
+-              syslog(LOG_INFO, msg);
++              syslog(LOG_INFO, "%s", msg);
+       else {
+               now = time((time_t *)NULL);
+               fprintf(stream, "%.24s: %s\n", ctime(&now), msg);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hdapsd.git/commitdiff/60104941ded82aa10649e16d474fd337c6bd4b24

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to