Package: dash
Version: 0.5.4-3
Severity: grave
Tags: patch
User: [EMAIL PROTECTED]
Usertags: ubuntu-patch origin-ubuntu hardy

Hi Gerrit,

dash 0.5.4-3 dies on sparc with a SIGBUS due to an arithmetic error
introduced with the patch
0030-EXEC-Fixed-execing-of-scripts-with-no-hash-bang.diff.  The attached
patch fixes the problem.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[EMAIL PROTECTED]                                     [EMAIL PROTECTED]
diff -u dash-0.5.4/debian/changelog dash-0.5.4/debian/changelog
--- dash-0.5.4/debian/changelog
+++ dash-0.5.4/debian/changelog
@@ -1,3 +1,9 @@
+dash (0.5.4-3ubuntu2) hardy; urgency=low
+
+  * fix unaligned trap on sparc
+
+ -- Steve Langasek <[EMAIL PROTECTED]>  Fri, 14 Dec 2007 12:31:15 -0800
+
 dash (0.5.4-3ubuntu1) hardy; urgency=low
 
   * Merge from debian unstable, remaining changes:
diff -u dash-0.5.4/debian/diff/0030-EXEC-Fixed-execing-of-scripts-with-no-hash-bang.diff dash-0.5.4/debian/diff/0030-EXEC-Fixed-execing-of-scripts-with-no-hash-bang.diff
--- dash-0.5.4/debian/diff/0030-EXEC-Fixed-execing-of-scripts-with-no-hash-bang.diff
+++ dash-0.5.4/debian/diff/0030-EXEC-Fixed-execing-of-scripts-with-no-hash-bang.diff
@@ -54,7 +54,7 @@
  
 -	argv = nargv = stalloc(sizeof (char *) * (argc + 1));
 +	/* Reserve one extra spot at the front for shellexec. */
-+	argv = nargv = stalloc(sizeof (char *) * (argc + 2)) + 1;
++	argv = nargv = ((char **)stalloc(sizeof (char *) * (argc + 2))) + 1;
  	for (sp = arglist.list ; sp ; sp = sp->next) {
  		TRACE(("evalcommand arg: %s\n", sp->text));
  		*nargv++ = sp->text;

Reply via email to