Debian Bug report logs - #248106
busybox-cvs: sed broken on arm/powerpc/s390, assumes signed char

version graph

Package: busybox-cvs; Maintainer for busybox-cvs is (unknown);

Reported by: Colin Watson <cjwatson@debian.org>

Date: Sun, 9 May 2004 11:18:01 UTC

Severity: grave

Found in version 20040507-1

Fixed in version busybox-cvs/20040507-2

Done: Bastian Blank <waldi@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#248106; Package busybox-cvs. Full text and rfc822 format available.

Acknowledgement sent to Colin Watson <cjwatson@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Colin Watson <cjwatson@debian.org>
To: submit@bugs.debian.org
Subject: busybox-cvs: sed broken on arm/powerpc/s390, assumes signed char
Date: Sun, 9 May 2004 12:02:58 +0100
Package: busybox-cvs
Version: 20040507-1
Severity: grave

The latest busybox-cvs has this change in sed:

-       int opt, status = EXIT_SUCCESS;
+       char opt, getpat=1, status = EXIT_SUCCESS;

It then assigns the return value of int getopt() to opt. This is totally
broken on arm, powerpc, and s390, as char is unsigned there and getopt()
uses -1 as a sentinel value; sed now displays its usage message whenever
you try to do something as simple as "sed -e 's/.*//'". Please revert to
'int opt'.

Fortunately a quick browse of the diff suggests that this is the only
such breakage.

Thanks,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply sent to Bastian Blank <waldi@debian.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Colin Watson <cjwatson@debian.org>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 248106-close@bugs.debian.org (full text, mbox):

From: Bastian Blank <waldi@debian.org>
To: 248106-close@bugs.debian.org
Subject: Bug#248106: fixed in busybox-cvs 20040507-2
Date: Sun, 09 May 2004 11:02:04 -0400
Source: busybox-cvs
Source-Version: 20040507-2

We believe that the bug you reported is fixed in the latest version of
busybox-cvs, which is due to be installed in the Debian FTP archive:

busybox-cvs-floppy-udeb_20040507-2_i386.udeb
  to pool/main/b/busybox-cvs/busybox-cvs-floppy-udeb_20040507-2_i386.udeb
busybox-cvs-static_20040507-2_i386.deb
  to pool/main/b/busybox-cvs/busybox-cvs-static_20040507-2_i386.deb
busybox-cvs-udeb_20040507-2_i386.udeb
  to pool/main/b/busybox-cvs/busybox-cvs-udeb_20040507-2_i386.udeb
busybox-cvs_20040507-2.diff.gz
  to pool/main/b/busybox-cvs/busybox-cvs_20040507-2.diff.gz
busybox-cvs_20040507-2.dsc
  to pool/main/b/busybox-cvs/busybox-cvs_20040507-2.dsc
busybox-cvs_20040507-2_i386.deb
  to pool/main/b/busybox-cvs/busybox-cvs_20040507-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 248106@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Blank <waldi@debian.org> (supplier of updated busybox-cvs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 09 May 2004 16:34:41 +0200
Source: busybox-cvs
Binary: busybox-cvs-static busybox-cvs busybox-cvs-udeb busybox-cvs-floppy-udeb
Architecture: source i386
Version: 20040507-2
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Bastian Blank <waldi@debian.org>
Description: 
 busybox-cvs - Tiny utilities for small and embedded systems
 busybox-cvs-floppy-udeb - Tiny utilities for the debian-installer floppy images (udeb)
 busybox-cvs-static - Standalone rescue shell with tons of builtin utilities
 busybox-cvs-udeb - Tiny utilities for the debian-installer (udeb)
Closes: 248106
Changes: 
 busybox-cvs (20040507-2) unstable; urgency=low
 .
   * editors/sed.c:
     - Never assign the return value of getopt to char. (closes: #248106)
Files: 
 19c950034cb816db9252210908f9faad 793 - optional busybox-cvs_20040507-2.dsc
 bd8b70d106e9fc5085e794f1e42d5c82 174545 - optional busybox-cvs_20040507-2.diff.gz
 37732e51a31c271005da9f9e06a6a3a2 663682 shells optional busybox-cvs-static_20040507-2_i386.deb
 c772a3752c064f6f5a25cd282f35b243 124716 utils optional busybox-cvs_20040507-2_i386.deb
 5944118215f8cecfcaaa5954d13fa4a6 141466 debian-installer extra busybox-cvs-udeb_20040507-2_i386.udeb
 2bd0ab0c907305b647d6bb645e1fa0f3 59436 debian-installer extra busybox-cvs-floppy-udeb_20040507-2_i386.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEYEARECAAYFAkCeRFMACgkQLkAIIn9ODhEtzQCg+nvmCF1+wX+/XQkmeoV9IJE6
EWIAoOadwj3SGNlmO8tnQqtiEeV6rLhD
=EOW1
-----END PGP SIGNATURE-----




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 04:09:48 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.