[ivtv-utils] Fix FTBFS with -Werror=format-security (#1037142, #1106810)
Yaakov Selkowitz
yselkowitz at fedoraproject.org
Tue Jul 8 00:06:05 UTC 2014
commit 4c6293d3a5f4483c58dc248b84f7272fb08e1aad
Author: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Date: Thu Jun 26 19:08:15 2014 -0500
Fix FTBFS with -Werror=format-security (#1037142, #1106810)
ivtv-utils-1.4.0-format-security.patch | 11 +++++++++++
ivtv-utils.spec | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/ivtv-utils-1.4.0-format-security.patch b/ivtv-utils-1.4.0-format-security.patch
new file mode 100644
index 0000000..bf08f9a
--- /dev/null
+++ b/ivtv-utils-1.4.0-format-security.patch
@@ -0,0 +1,11 @@
+--- a/utils/ivtv-ctl.c 2009-02-06 12:46:10.000000000 -0600
++++ b/utils/ivtv-ctl.c 2014-06-11 19:20:32.599587277 -0500
+@@ -254,7 +254,7 @@ static int dowrite(const char *buf, cons
+ printf("failed: %s\n", strerror(errno));
+ return errno;
+ }
+- fprintf(f, buf);
++ fprintf(f, "%s", buf);
+ fclose(f);
+ return 0;
+ }
diff --git a/ivtv-utils.spec b/ivtv-utils.spec
index a274bf7..58756d6 100644
--- a/ivtv-utils.spec
+++ b/ivtv-utils.spec
@@ -1,11 +1,12 @@
Summary: Tools for the iTVC15/16 and CX23415/16 driver
Name: ivtv-utils
Version: 1.4.0
-Release: 16%{?dist}
+Release: 17%{?dist}
License: GPLv2
Group: Applications/Multimedia
Source0: http://dl.ivtvdriver.org/ivtv/archive/1.4.x/%{name}-%{version}.tar.gz
#Patch0: ivtv-utils-1.3.0-v4l2-register-changes.patch
+Patch1: ivtv-utils-1.4.0-format-security.patch
URL: http://ivtvdriver.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: ivtv-firmware
@@ -24,6 +25,7 @@ some userland tools for ivtv.
%prep
%setup -q
#patch0 -p1
+%patch1 -p1
perl -pi -e's,/sbin/depmod,:,g' driver/Makefile
grep -rl '#include <linux/config.h>' . | xargs perl -pi -e's,#include <linux/config.h>,/* #include <linux/config.h> */,'
perl -pi -e's at CFLAGS = -D_GNU_SOURCE .*@CFLAGS = -D_GNU_SOURCE -D__user= %{optflags}@' utils/Makefile
@@ -56,6 +58,9 @@ rm -rf %{buildroot}
%{_datadir}/ivtv
%changelog
+* Wed Jun 11 2014 Yaakov Selkowitz <yselkowi at redhat.com> - 1.4.0-17
+- Fix for -Werror=format-security (#1037142, #1106810)
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.0-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list