delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/13/04:25:40

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RDNS_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <5028B9D5.6050007@gmx.de>
Date: Mon, 13 Aug 2012 10:24:53 +0200
From: Herbert Stocker <hersto AT gmx DOT de>
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> <CA+7connXxSSkw-fhHvqbVanEvX7YHOVVdLndmqmd07xRvFT49Q AT mail DOT gmail DOT com> <20120812170641 DOT GC32748 AT ednor DOT casa DOT cgf DOT cx> <CA+7conm=AXUX9Xfj67tGRgMbrgC47W9QHuQ2L3V2p_=7Cf81GQ AT mail DOT gmail DOT com> <CA+sc5m=myjskB4zG0HARWHvZMQGz-k=j7jT=q1Gny4XpNgMfCg AT mail DOT gmail DOT com> <20120812205407 DOT GA7337 AT ednor DOT casa DOT cgf DOT cx> <CA+7conmB1mt25F+d1-TsseeK=eXRRD5JrGW42u=Mka8061A7Zg AT mail DOT gmail DOT com>
In-Reply-To: <CA+7conmB1mt25F+d1-TsseeK=eXRRD5JrGW42u=Mka8061A7Zg@mail.gmail.com>
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

Hi,

Imho, EACCESS is indeed a bit misleading because it suggests permission
problems. Better would be to have an EFAIL as a generic error. Actually i
was missing an EFAIL several times when my programs needed to return
an error code that did not match well with what i found in errno.h .

On Sun, Aug 12, 2012 at 11:07:00AM +0200, Pawel Jasinski wrote:

> If you can find a nice Linux errno which maps from ERROR_SXS_CANT_GEN_ACTCTX
> to something other than EACCES I'd be happy to change Cygwin.

I had a quick poke into sys/errno.h and there i found 5 error codes
beginning with ELIB. One of those should suffice. My fafourite is this:

    #define ELIBBAD 84.     /* Accessing a corrupted shared lib */

Because side-by-side problems may mean that the supporting DLL is
acutally there and can be read (also for execute), but the accompanying
XML file describes it incorrectly (e.g. wrong version number), the DLL
is not signed correctly, is not placed in the subdirectory whose name
is mandated by Windows, etc.

> Otherwise, no, I'm not going to worry about this issue.

There is no need for the 'no', i'd suggest ELIBBAD.

(And to bring back to memory, i'd also suggest to add EFAIL be added)


Herbert

P.S.: thanks for the hint, 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

- Raw text -


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