delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/17/12:48:49

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=opxZDQPEwmfrZeeEcd5zz0IuxxObGZGXmm0cqDmbLEjajzblX0OWX
Ufr30/t7XucDaIGWgg9puLXi4ONW8ZeD0msjxAq2TJRiNIpmZaPCGuJya1LhUnfe
RR9wItDjZr46FFMS5I9RTkGB5JnOGg1iFjXCi93n7ysrlnKTKKUNtQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=142tq+lzVLMuBRVt+ZWEQkXQOOg=; b=r6jJHLQEqUBmNdwN4v+sMaM0vA/S
quuB8goknwKLDOITtOMMEbE0F+WeFxgiJ2ag6pkO6ZlHbIAz4hDsgzJnCxaTcXDE
tofp7FM8tssnPbc64R2H67ftSKMlWarPpPrQyveqNnUNZ9G0V/aZ5cLUcK6HDGLF
SqdXRUoXwprmwhw=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-93.9 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=corinna-cygwin, corinnacygwin, permtest, tcsh
X-HELO: calimero.vinschen.de
Date: Thu, 17 Mar 2016 17:48:07 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.5.0-0.7
Message-ID: <20160317164807.GE24385@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <announce DOT 20160315105315 DOT GB4535 AT calimero DOT vinschen DOT de> <loom DOT 20160317T161314-565 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20160317T161314-565@post.gmane.org>
User-Agent: Mutt/1.5.24 (2015-08-30)

--qFgkTsE6LiHkLPZw
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mar 17 15:27, Achim Gratz wrote:
> Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> > I released a new Cygwin TEST version 2.5.0-0.7.
>=20
> While testing this I got the following from tcsh:
>=20
> > touch permtest
> > chmod 0 permtest
> > ./permtest
> ./permtest: Bad file descriptor.
>=20
> I would have expected
>=20
> $ ./permtest
> ./permtest: Permission denied.
>=20
> which is what I indeed get with bash/dash.
>=20
> I can't test at the moment if that was happening with 2.4.1 also.

During execve the file is opened to check if it's a scrip or a real
executable.  If opening the file fails, Cygwin neglects to set the
correct error code so you just get the previous errno value.

Fixed in the git repo.


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--qFgkTsE6LiHkLPZw
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJW6t/HAAoJEPU2Bp2uRE+gJvEP/AqHFK2A4byfFgldt/VCxO4p
2LR57+YRf0M/ax9c56DAPmHuUFQ/q4X2MYwHCnsxn/kBJiZQK2hHJoax4oCdAlOw
jLr+dKFkTh4lYEzvbS5ZoXdZQIbfjIdHya0MBe4+4iyObbpdlq564OVsFq/fGCTk
y3e9kmovtwnEu+fb8HUGS5WaaXUzmJ4FqiMMhM3PviJcmQx3ceL8JV/YvC4x7cfK
oIYaX6loMu8DM1DFX6S6nEkTUbxyRuKX4Qil678KQ2+D9XoBqb90WtMon1PLWL2s
SIO3X3R6DdSarxNvs2tVcoidFo7lzX4hfKg3IJp8RAxQJXiSkZAJw/cOUQFzNN/b
Dllb8rW9vuruO1tEIGJ4Wdbn22CpstueKIDx1f6cywTlrggjIFuQCy5j+Fyoesty
MuPgVeYjv0jPTmoUsdNqP9IVROtyneMU9Dwp1LfHtF0zwCYTll9sy1Xu5/huNQrH
8BrbnN8QfmBLcZOTw4ajOEcvmPI/nq8KqYdD01T3hAz+ay/GuUrjenS2VRV4+0bN
adB6KrIxBUCTu2TdOBXvQBlOdlsgDKZmx+1z+Z0gphBFHdQtRJmwwVPKojn076v/
jdOwfxHgAmQ56Jv5Um6nFkz/rTb/fMAd9Yxhfcw3Et5m8H+CLNmZJVkzM639lGGB
5F9aHLpA6IE9RQuKKxG0
=dB7C
-----END PGP SIGNATURE-----

--qFgkTsE6LiHkLPZw--

- Raw text -


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