[ldapdiff] Fix with patch
Nicolas Chauvet
kwizart at fedoraproject.org
Sun Mar 2 22:25:43 UTC 2014
commit 7b48e0d889f93a574498ce99db076efc14f4ee95
Author: Nicolas Chauvet <kwizart at gmail.com>
Date: Sun Mar 2 23:26:30 2014 +0100
Fix with patch
ldapdiff-1.4.1-format-security.patch | 12 ++++++++++++
ldapdiff.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/ldapdiff-1.4.1-format-security.patch b/ldapdiff-1.4.1-format-security.patch
new file mode 100644
index 0000000..3445e24
--- /dev/null
+++ b/ldapdiff-1.4.1-format-security.patch
@@ -0,0 +1,12 @@
+diff -up ldapdiff-1.4.1/ldaplog.c.fs ldapdiff-1.4.1/ldaplog.c
+--- ldapdiff-1.4.1/ldaplog.c.fs 2008-10-23 21:10:05.000000000 +0200
++++ ldapdiff-1.4.1/ldaplog.c 2014-03-02 23:08:50.167117726 +0100
+@@ -69,7 +69,7 @@ static void ldiflogsyslog(int aloglevel,
+ case LOG2 : level = LOG_DEBUG;
+ break;
+ }
+- syslog(level,msg);
++ syslog(level,"%s", msg);
+ closelog();
+ }
+
diff --git a/ldapdiff.spec b/ldapdiff.spec
index d67c302..52aa168 100644
--- a/ldapdiff.spec
+++ b/ldapdiff.spec
@@ -1,12 +1,13 @@
Name: ldapdiff
Version: 1.4.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Tool for incremental LDAP directory updates based on ldif files
Group: Applications/System
License: GPLv3+
URL: http://launchpad.net/ldapdiff
Source0: https://launchpad.net/ldapdiff/trunk/%{version}/+download/ldapdiff-%{version}_src.tgz
+Patch0: ldapdiff-1.4.1-format-security.patch
BuildRequires: openldap-devel
@@ -19,6 +20,7 @@ files, it is designed for "patching" ldap directories using ldif files.
%prep
%setup -q
+%patch0 -p1 -b .fs
make clean
%build
@@ -41,6 +43,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
%changelog
+* Sun Mar 02 2014 Nicolas Chauvet <kwizart at gmail.com> - 1.4.1-4
+- Fix for format-security - rhbz#1037153
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list