delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/11/15:55:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_RW,TW_WX
X-Spam-Check-By: sourceware.org
Message-ID: <5026B87A.7000608@hones.org.uk>
Date: Sat, 11 Aug 2012 20:54:34 +0100
From: Cliff Hones <cliff AT hones DOT org DOT uk>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 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: <k045k2$gvk$1 AT dough DOT gmane DOT org> <5025C431 DOT 7050201 AT cygwin DOT com> <k064ut$6kt$1 AT dough DOT gmane DOT org> <20120811192243 DOT GA28398 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20120811192243.GA28398@ednor.casa.cgf.cx>
X-Spam-Score: -0.0 (/) (knockando.watchfront.net.uk)
X-Spam-Report: knockando.watchfront.net.uk has scanned this email for spam. Results:- T_RP_MATCHES_RCVD=-0.01 (total -0.0, current threshold 5.0)
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

On 11/08/2012 20:22, Christopher Faylor wrote:
> On Sat, Aug 11, 2012 at 10:32:13AM -0700, Andrew DeFaria wrote:
>> On 08/10/2012 07:32 PM, Larry Hall (Cygwin) wrote:
>>> On 8/10/2012 7:31 PM, Andrew DeFaria wrote:
>>>> I use Cygwin a lot. And I kick off Windows processes a lot. Recently 
>>>> I've
>>>> been having a problem with my system but from Cygwin all I see is
>>>> "permission denied":
>>>>
>>>>     Ltsdo-adefaria:cd /cygdrive/c/Program\ 
>>>> Files/IBM/RationalSDLC/Clearquest
>>>>     Ltsdo-adefaria:ls -l clearquest.exe
>>>>     -rwxr-xr-x+ 1 Administrators clearusers 245760 Jun  2  2011
>>>>     clearquest.exe*
>>>>     Ltsdo-adefaria:clearquest
>>>>     bash: ./clearquest: Permission denied
>>>>     Ltsdo-adefaria:
>>>>
>>>> However if I use cmd the real error message comes out:
>>>>
>>>>     Ltsdo-adefaria:cmd /c clearquest
>>>>     The application has failed to start because its side-by-side
>>>>     configuration is incorrect. Please see the application event log or
>>>>     use the command-line sxstrace.exe tool for more detail.
>>>>
>>>> I know that this "side-by-side configuration is incorrect" is a
>>>> configuration error on my machine and I need to fix it, but shouldn't
>>>> Cygwin's exec(2) report the "side-by-side" error instead of the more
>>>> erroneous "Permission denied" error?
>>>
>>> Cygwin doesn't report Windows error codes.  It reports POSIX ones.  I
>>> have no idea why there would be a POSIX error code for side-by-side
>>> errors but if there were, then reporting that is more appropriate.
>> I thought that perhaps Cygwin would report back error *messages* not 
>> just error *codes*...
> 
> Cygwin emulates Linux.  "Permission denied" is an error message associated
> with a specific errno.  Neither Cygwin nor Linux know anything about a
> "side-by-side" configuration problem.

I imagine there are many Windows errors which Cygwin has to interpret internally
and present as POSIX errors to the user.  It looks like this Windows7 error
may mean that some Windows runtime components are missing - in which case
wouldn't ELIBACC or ELIBEXEC be more appropriate?  "Permission denied" suggests
that changing the access permissions, or running as a user with greater
privileges would solve the problem.

-- Cliff


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