Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-Id: <3.0.5.32.19990227183336.00812600@pop.ne.mediaone.net>
X-Sender: phumblet@pop.ne.mediaone.net
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
Date: Sat, 27 Feb 1999 18:33:36 -0500
To: bug-gnu-utils@gnu.org
From: "Pierre A. Humblet" <Pierre.Humblet@eurecom.fr>
Subject: bug in strip 2.9.4
Cc: cygwin@sourceware.cygnus.com
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

strip 2.9.4 in Binutils-2.9 has a bug when stripping a file accessed through a link, on systems that open files by default in text mode (such as cygwin).
The new executable file has an incorrect length.

I believe the bug occurs in the file binutils/objcopy.c, in the function 
simple_copy. The open() and creat() below will open in text mode and the
copy won't be properly executed for binary files.

  fromfd = open (from, O_RDONLY);
  if (fromfd < 0)
    return -1;
  tofd = creat (to, 0777);

Pierre


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

