]> git.pld-linux.org Git - packages/tcsh.git/commitdiff
Fix build with -Werror=format-security auto/ti/tcsh-6.18.01-4
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Wed, 13 Feb 2013 21:32:12 +0000 (22:32 +0100)
committerMarcin Banasiak <marcin.banasiak@gmail.com>
Wed, 13 Feb 2013 21:32:12 +0000 (22:32 +0100)
tcsh-format-security.patch [new file with mode: 0644]
tcsh.spec

diff --git a/tcsh-format-security.patch b/tcsh-format-security.patch
new file mode 100644 (file)
index 0000000..0743798
--- /dev/null
@@ -0,0 +1,11 @@
+--- tcsh-6.18.01/sh.func.c.formatsec   2013-02-13 22:26:11.659476651 +0100
++++ tcsh-6.18.01/sh.func.c     2013-02-13 22:28:13.118818644 +0100
+@@ -2317,7 +2317,7 @@ setlim(struct limits *lp, int hard, RLIM
+     if (setrlimit(lp->limconst, &rlim) < 0) {
+        if ( ( lp->limconst == RLIMIT_LOCKS ) &&
+           ( errno == EINVAL ) ) {
+-             xprintf(CGETS(15, 5, "cannot set it on the current kernel\n"));
++             xprintf("%s", CGETS(15, 5, "cannot set it on the current kernel\n"));
+              return(0);
+        }
+ # else /* BSDLIMIT */
index fd83f6ce6f7d91cb267977ef9fd3eb31330c9e57..c8a5aab3be0bc154705e74ef68a6e7b2d304596b 100644 (file)
--- a/tcsh.spec
+++ b/tcsh.spec
@@ -31,6 +31,7 @@ Patch2:               %{name}-no-timestamp-history.patch
 Patch3:                %{name}-time.patch
 Patch4:                %{name}-rlimit_locks.patch
 Patch5:                %{name}-no_TERMCAP.patch
+Patch6:                %{name}-format-security.patch
 URL:           http://www.tcsh.org/Home
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake
@@ -120,8 +121,10 @@ W tym pakiecie jest statycznie skonsolidowany tcsh.
 %patch3        -p1
 %patch4        -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
+mkdir m4
 cp /usr/share/automake/config.sub .
 %{__aclocal}
 %{__autoconf}
This page took 0.735196 seconds and 4 git commands to generate.