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 <>

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 <>

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 Install System Team <>:
Bug#248106; Package busybox-cvs. Full text and rfc822 format available.

Acknowledgement sent to Colin Watson <>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <>. Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Colin Watson <>
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.


Colin Watson                                  []

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

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

Message #10 received at (full text, mbox):

From: Bastian Blank <>
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:

  to pool/main/b/busybox-cvs/busybox-cvs-floppy-udeb_20040507-2_i386.udeb
  to pool/main/b/busybox-cvs/busybox-cvs-static_20040507-2_i386.deb
  to pool/main/b/busybox-cvs/busybox-cvs-udeb_20040507-2_i386.udeb
  to pool/main/b/busybox-cvs/busybox-cvs_20040507-2.diff.gz
  to pool/main/b/busybox-cvs/busybox-cvs_20040507-2.dsc
  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

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

Debian distribution maintenance software
Bastian Blank <> (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

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 <>
Changed-By: Bastian Blank <>
 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
 busybox-cvs (20040507-2) unstable; urgency=low
   * editors/sed.c:
     - Never assign the return value of getopt to char. (closes: #248106)
 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

Version: GnuPG v1.2.4 (GNU/Linux)


Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Fri Apr 18 04:09:48 2014; Machine Name:

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