]> git.pld-linux.org Git - packages/glibc.git/commitdiff
- added format patch (to build with -Werror=format-security) auto/th/glibc-2.16.0-2
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 5 Nov 2012 19:09:28 +0000 (20:09 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 5 Nov 2012 19:09:28 +0000 (20:09 +0100)
glibc-format.patch [new file with mode: 0644]
glibc.spec

diff --git a/glibc-format.patch b/glibc-format.patch
new file mode 100644 (file)
index 0000000..c37d00f
--- /dev/null
@@ -0,0 +1,33 @@
+--- glibc-2.16.0/sunrpc/rpc_hout.c.orig        2012-06-30 21:12:34.000000000 +0200
++++ glibc-2.16.0/sunrpc/rpc_hout.c     2012-11-05 19:35:07.650720620 +0100
+@@ -579,7 +579,7 @@ pdeclaration (const char *name, declarat
+         break;
+       }
+     }
+-  f_print (fout, separator);
++  f_print (fout, "%s", separator);
+ }
+ static int
+--- glibc-2.16.0/sunrpc/rpc_main.c.orig        2012-11-05 19:29:09.910752451 +0100
++++ glibc-2.16.0/sunrpc/rpc_main.c     2012-11-05 19:35:49.249302261 +0100
+@@ -647,7 +647,7 @@ h_output (const char *infile, const char
+     }
+   else if (tblflag)
+     {
+-      fprintf (fout, rpcgen_table_dcl);
++      fprintf (fout, "%s", rpcgen_table_dcl);
+     }
+   if (Cflag)
+--- glibc-2.16.0/sunrpc/rpc_svcout.c.orig      2012-11-05 19:45:54.353824657 +0100
++++ glibc-2.16.0/sunrpc/rpc_svcout.c   2012-11-05 19:45:22.272347802 +0100
+@@ -353,7 +353,7 @@ write_real_program (const definition * d
+             f_print (fout, " (");
+             /* arg name */
+             if (proc->arg_num > 1)
+-              f_print (fout, proc->args.argname);
++              f_print (fout, "%s", proc->args.argname);
+             else
+               ptype (proc->args.decls->decl.prefix,
+                      proc->args.decls->decl.type, 0);
index 2d668f13ab1a8fb87e5dde19434cd25d20006690..b3cae4a7220ae29d90b820a5e83ae8a62ef40cc7 100644 (file)
@@ -64,7 +64,7 @@ Patch7:               1070_all_glibc-fadvise64_64.patch
 Patch8:                %{name}-missing-nls.patch
 Patch9:                %{name}-java-libc-wait.patch
 Patch10:       %{name}-info.patch
-
+Patch11:       %{name}-format.patch
 Patch12:       %{name}-rh-bug-769421.patch
 Patch14:       %{name}-sparc-errno_fix.patch
 Patch15:       %{name}-new-charsets.patch
@@ -925,7 +925,7 @@ mv %{name}-ports-%{ports_version} ports
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
-
+%patch11 -p1
 %patch12 -p1
 %patch14 -p0
 %patch15 -p1
This page took 0.045825 seconds and 4 git commands to generate.