delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/14/01:39:08

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 <eblake AT redhat DOT com>
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: <CA+7conmVyztppQN8b=aVp6MhPGLGaswkeTFE3tRa7QDHndsH9g AT mail DOT gmail DOT com> <20120813185602 DOT GA22085 AT ednor DOT casa DOT cgf DOT cx> <50295185 DOT 7020908 AT dancol DOT org> <CA+7con=Fbu91rQ6eudWpAxH6XQvPaC5jerM5U3=ByNK5a1FUhg AT mail DOT gmail DOT com>
In-Reply-To: <CA+7con=Fbu91rQ6eudWpAxH6XQvPaC5jerM5U3=ByNK5a1FUhg@mail.gmail.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
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

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

- Raw text -


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