delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/13/22:21:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+MCjIKpW/b5n4esg/CQaUg
Date: Mon, 13 Aug 2012 22:20:46 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Side-by-side configuration is incorrect reported as permission denied
Message-ID: <20120814022046.GA25271@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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>
MIME-Version: 1.0
In-Reply-To: <CA+7con=Fbu91rQ6eudWpAxH6XQvPaC5jerM5U3=ByNK5a1FUhg@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Tue, Aug 14, 2012 at 02:07:32AM +0200, Pawel Jasinski wrote:
>hi,
>
>How about this one. Bash has already some cygwin specific stuff.
>
>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 = i;
>+#if __CYGWIN__
>+      if (errno==EACCES && GetLastError() == ERROR_SXS_CANT_GEN_ACTCTX)
>+          errno = ELIBBAD;
>+#endif
>          file_error (command);
>        }
>       return ((i == ENOENT) ? EX_NOTFOUND : EX_NOEXEC);        /* XXX
>Posix.2 says that exit status is 126 */

Why would we do that instead of patching the DLL?  That doesn't make
any sense.

Are you somehow not getting the fact that the DLL was going to be
changed despite the fact that I said I was going to do it?  This has
been done.  You don't need to do anything here.

http://cygwin.com/ml/cygwin/2012-08/msg00253.html
http://cygwin.com/ml/cygwin/2012-08/msg00281.html
http://cygwin.com/ml/cygwin/2012-08/msg00302.html

Please drop this now.  It's clear that no one has any clever ideas about
how to make this work that doesn't involve patching every application
that uses errno.  So, this discussion should just die.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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