From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20901 invoked by alias); 11 Aug 2012 19:23:00 -0000 Received: (qmail 20893 invoked by uid 22791); 11 Aug 2012 19:22:59 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_RW,TW_WX X-Spam-Check-By: sourceware.org Received: from mho-02-ewr.mailhop.org (HELO mho-02-ewr.mailhop.org) (204.13.248.72) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 11 Aug 2012 19:22:45 +0000 Received: from pool-173-76-55-36.bstnma.fios.verizon.net ([173.76.55.36] helo=cgf.cx) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.72) (envelope-from ) id 1T0HGm-000BT4-S6 for cygwin@cygwin.com; Sat, 11 Aug 2012 19:22:44 +0000 Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id B6730428003 for ; Sat, 11 Aug 2012 15:22:43 -0400 (EDT) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/wPVDgLFWf9+IEqPfSetVG Date: Sat, 11 Aug 2012 19:54:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Side-by-side configuration is incorrect reported as permission denied Message-ID: <20120811192243.GA28398@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <5025C431.7050201@cygwin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-08/txt/msg00248.txt.bz2 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. 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