delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/24/09:17:38

X-Spam-Check-By: sourceware.org
Message-ID: <462E038D.7020400@byu.net>
Date: Tue, 24 Apr 2007 07:18:05 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: attn gzip and info maintainer
References: <462D8312 DOT 40105 AT byu DOT net> <20070424122622 DOT GB4571 AT ednor DOT casa DOT cgf DOT cx> <462DF92E DOT 2090302 AT byu DOT net> <20070424125336 DOT GA9348 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20070424125336.GA9348@ednor.casa.cgf.cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enigF2DB34D8135F30902A9B3785
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

According to Christopher Faylor on 4/24/2007 6:53 AM:
> If I do a 'strings' on info.exe, I see the strings 'bzip2' and 'gzip'
without
> extensions.

True, but look at this:

$ strings /bin/info.exe | grep -A12 gunzip
gunzip
.bz2
bunzip2
uncompress
unyabba
.info
-info
/index
.inf
/usr/local/info:/usr/info:...
.exe
%s%s < %s
%s...

Info intentionally appends the .exe suffix, concatenating both 'gunzip'
and '.exe' along with the redirection, in creating the system() call, so
that the subsidiary /bin/sh invocation sees 'gunzip.exe < filename.gz'.

[and while testing this, I noticed that strace shows argv of the primary
process, but not of the children processes; it would be nice to see argv
for all processes in an strace]

> I have to admit that my eyes glaze over when people start talking about
> .exe extensions so I wasn't paying attention (my bad) when this decision
> was made.  I don't remember, however, this decision being put to a vote
> for package maintainers because I definitely would have voted for each
> maintainer fixing their package rather than having you do it for us.

Fair enough.

The list of affected packages is here:
http://cygwin.com/ml/cygwin-apps/2007-04/msg00065.html

And I will release coreutils-6.9-2 that does not do the postinstall
renaming when bumping it to current, rather than promoting the existing 6.9=
-1.

--=20
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net


--------------enigF2DB34D8135F30902A9B3785
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLgOW84KuGfSFAYARAmWIAJ9bFaG09GU7ouV1ftfJpF8SOGa9DgCeOdjw
iaJRgW3FJnn2BCQb0bFfliM=
=k3aN
-----END PGP SIGNATURE-----

--------------enigF2DB34D8135F30902A9B3785--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019