X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-4.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <50295185.7020908@dancol.org> References: <20120813185602 DOT GA22085 AT ednor DOT casa DOT cgf DOT cx> <50295185 DOT 7020908 AT dancol DOT org> Date: Tue, 14 Aug 2012 02:07:32 +0200 Message-ID: Subject: Re: Side-by-side configuration is incorrect reported as permission denied From: Pawel Jasinski To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 hi, How about this one. Bash has already some cygwin specific stuff. 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 = 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 */ Cheers, Pawel -- 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