]> git.pld-linux.org Git - packages/patchutils.git/commitdiff
- added format patch (fixes build with -Werror=format-security) auto/th/patchutils-0.3.3-1 auto/ti/patchutils-0.3.3-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 11 Jul 2013 15:03:18 +0000 (17:03 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 11 Jul 2013 15:03:18 +0000 (17:03 +0200)
patchutils-format.patch [new file with mode: 0644]
patchutils.spec

diff --git a/patchutils-format.patch b/patchutils-format.patch
new file mode 100644 (file)
index 0000000..9a6bba5
--- /dev/null
@@ -0,0 +1,20 @@
+--- patchutils-0.3.3/src/filterdiff.c.orig     2011-05-26 15:47:46.000000000 +0200
++++ patchutils-0.3.3/src/filterdiff.c  2013-07-11 16:31:31.894473188 +0200
+@@ -1263,7 +1263,7 @@
+                       char errstr[300];
+                       regerror (err, &regex[num_regex - 1], errstr,
+                                 sizeof (errstr));
+-                      error (EXIT_FAILURE, 0, errstr);
++                      error (EXIT_FAILURE, 0, "%s", errstr);
+                       exit (1);
+               }
+       }
+@@ -1509,7 +1509,7 @@
+                       char errstr[300];
+                       regerror (err, &regex[num_regex - 1], errstr,
+                                 sizeof (errstr));
+-                      error (EXIT_FAILURE, 0, errstr);
++                      error (EXIT_FAILURE, 0, "%s", errstr);
+                       exit (1);
+               }
+       }
index f39180c1d47b6341310231a344ebac89269dd2e7..24f36541699eb20847a8028b6a3cf36a4488f237 100644 (file)
@@ -10,6 +10,7 @@ License:      GPL v2+
 Group:         Applications/Text
 Source0:       http://cyberelk.net/tim/data/patchutils/stable/%{name}-%{version}.tar.xz
 # Source0-md5: b640b6b8af6183f83eacf7bd6d2460cb
+Patch0:                %{name}-format.patch
 Patch1:                %{name}-fixcvsdiff.patch
 URL:           http://cyberelk.net/tim/patchutils/
 BuildRequires: perl-base
@@ -136,6 +137,7 @@ patch-файлів непотрібних patch'ів на основі шабл
 
 %prep
 %setup -q
+%patch0 -p1
 %patch1 -p0
 
 %build
This page took 0.141488 seconds and 4 git commands to generate.