]> git.pld-linux.org Git - packages/bash.git/commitdiff
- fix for -Werror=format-security in print_cmd.c
authorKacper Kornet <draenog@pld-linux.org>
Fri, 7 Dec 2012 15:31:58 +0000 (15:31 +0000)
committerKacper Kornet <draenog@pld-linux.org>
Fri, 7 Dec 2012 15:31:58 +0000 (15:31 +0000)
bash-format-string.patch [new file with mode: 0644]
bash.spec

diff --git a/bash-format-string.patch b/bash-format-string.patch
new file mode 100644 (file)
index 0000000..978033d
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ur bash-4.2.orig/print_cmd.c bash-4.2/print_cmd.c
+--- bash-4.2.orig/print_cmd.c  2012-12-07 15:21:47.381111626 +0000
++++ bash-4.2/print_cmd.c       2012-12-07 15:22:16.575674624 +0000
+@@ -1394,7 +1394,7 @@
+   for (i = 0; amount > 0; amount--)
+     indentation_string[i++] = ' ';
+   indentation_string[i] = '\0';
+-  cprintf (indentation_string);
++  cprintf ("%s", indentation_string);
+ }
+ static void
index 2421d940795ac8ef90428e7e8286fc7a0912808d..d726b3427a4abcb013db5e6d3f4d58ef83323ea9 100644 (file)
--- a/bash.spec
+++ b/bash.spec
@@ -35,6 +35,7 @@ Patch9:               %{name}-backup_history.patch
 Patch10:       %{name}-act_like_sh.patch
 Patch11:       %{name}-elinks_cont.patch
 Patch12:       %{name}-pl.po-update.patch
+Patch13:       %{name}-format-string.patch
 %{?patchlevel:%patchset_source -f http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-%03g 1 %{patchlevel}}
 URL:           http://www.gnu.org/software/bash/
 BuildRequires: autoconf
@@ -193,6 +194,7 @@ tym pakiecie jest wersja basha skonsolidowana statycznie.
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
+%patch13 -p1
 
 %build
 cp -f /usr/share/automake/config.* support
This page took 0.034848 seconds and 4 git commands to generate.