X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-10.3 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <5029E45B.6020308@redhat.com> Date: Mon, 13 Aug 2012 23:38:35 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Side-by-side configuration is incorrect reported as permission denied References: <20120813185602 DOT GA22085 AT ednor DOT casa DOT cgf DOT cx> <50295185 DOT 7020908 AT dancol DOT org> In-Reply-To: OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF402DBFEAE17156C4C95024B" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enigF402DBFEAE17156C4C95024B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 08/13/2012 06:07 PM, Pawel Jasinski wrote: > hi, >=20 > How about this one. Bash has already some cygwin specific stuff. >=20 > rejap win7dev /usr/src/bash-4.1.10-4/src/bash-4.1 > $ diff -uN execute_cmd.c.orig execute_cmd.c > --- execute_cmd.c.orig 2012-08-14 00:36:57.092722900 +0200 > +++ execute_cmd.c 2012-08-14 01:50:03.248969800 +0200 > @@ -4838,6 +4838,10 @@ > } > #endif > errno =3D i; > +#if __CYGWIN__ > + if (errno=3D=3DEACCES && GetLastError() =3D=3D ERROR_SXS_CANT_GEN_= ACTCTX) > + errno =3D ELIBBAD; > +#endif Nope, won't do it. If cygwin1.dll returns ELIBADD natively (which, as of today's patches, it does), then bash will already do what you want without me having to patch bash too. Bash should not ever have to call GetLastError(). --=20 Eric Blake eblake AT redhat DOT com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigF402DBFEAE17156C4C95024B 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.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJQKeRbAAoJEKeha0olJ0NqlTkIAICYvonN4Ay1PgvCXQy29Hm3 HG8FI+14x1OSXmsrykSr0O2aiA8PPP2eF7KQncXVMD9Ka+wZUZSedLKF6S0UmlnW a/hyS7wK0yBX4ERcdwIsKa8E3LmctFK4qM2lO46fjK1dnlG0YsQYdj5F3D3Ivb3g d4zCBwe26OjViuLaNd3lpPKo0l+ManpP4537SsuR7qGV+xN/VbQyR5J1eX5YOAKG Nsm2J1T0vFbpwujNInV5lwD8+ww3sOMl0fpKqLTKcLTswP7xEF8Lx2Hcrzs625yh 3GvBB/hvV7PZjt/Nggtx80Rgdd00gBzW51xXWqQ/xEsTLI6IBYupIBD2yyJFJfc= =H8Z5 -----END PGP SIGNATURE----- --------------enigF402DBFEAE17156C4C95024B--