[packages/bash] - fix for -Werror=format-security in print_cmd.c
draenog
draenog at pld-linux.org
Fri Dec 7 16:34:37 CET 2012
commit 6736db48d0545910a7bdd0de4e68000589c0d7b7
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Fri Dec 7 15:31:58 2012 +0000
- fix for -Werror=format-security in print_cmd.c
bash-format-string.patch | 12 ++++++++++++
bash.spec | 2 ++
2 files changed, 14 insertions(+)
---
diff --git a/bash.spec b/bash.spec
index 2421d94..d726b34 100644
--- 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
diff --git a/bash-format-string.patch b/bash-format-string.patch
new file mode 100644
index 0000000..978033d
--- /dev/null
+++ b/bash-format-string.patch
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bash.git/commitdiff/6736db48d0545910a7bdd0de4e68000589c0d7b7
More information about the pld-cvs-commit
mailing list