[packages/dash] - updated to 0.5.8 - added format patch (fixes build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Sun Oct 5 17:46:25 CEST 2014


commit 04cc3a131a825cf41b6cd84ca7bafe3bd2263671
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Oct 5 17:46:38 2014 +0200

    - updated to 0.5.8
    - added format patch (fixes build with -Werror=format-security)

 dash-format.patch | 11 +++++++++++
 dash.spec         |  6 ++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/dash.spec b/dash.spec
index 89f66b3..84845f7 100644
--- a/dash.spec
+++ b/dash.spec
@@ -1,12 +1,13 @@
 Summary:	POSIX-compliant implementation of /bin/sh
 Summary(pl.UTF-8):	Zgodna z POSIX implementacja /bin/sh
 Name:		dash
-Version:	0.5.7
+Version:	0.5.8
 Release:	1
 License:	GPL v2+
 Group:		Applications/Shells
 Source0:	http://gondor.apana.org.au/~herbert/dash/files/%{name}-%{version}.tar.gz
-# Source0-md5:	f6cedb10ae7258adb5ab17a10ae80d51
+# Source0-md5:	5c152209680dab3c319e8923f6c51378
+Patch0:		%{name}-format.patch
 URL:		http://gondor.apana.org.au/~herbert/dash/
 Requires(post):	grep
 Requires(preun):	sed >= 4.0
@@ -35,6 +36,7 @@ SHell).
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure
diff --git a/dash-format.patch b/dash-format.patch
new file mode 100644
index 0000000..b93bb52
--- /dev/null
+++ b/dash-format.patch
@@ -0,0 +1,11 @@
+--- dash-0.5.8/src/jobs.c.orig	2014-09-28 10:19:32.000000000 +0200
++++ dash-0.5.8/src/jobs.c	2014-10-05 17:40:52.165504729 +0200
+@@ -427,7 +427,7 @@
+ 				goto out;
+ #endif
+ 		}
+-		col = fmtstr(s, 32, strsignal(st));
++		col = fmtstr(s, 32, "%s", strsignal(st));
+ #ifdef WCOREDUMP
+ 		if (WCOREDUMP(status)) {
+ 			col += fmtstr(s + col, 16, " (core dumped)");
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dash.git/commitdiff/04cc3a131a825cf41b6cd84ca7bafe3bd2263671



More information about the pld-cvs-commit mailing list