delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/13/13:57:20

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Mon, 13 Aug 2012 19:56:52 +0200
Message-ID: <CA+7conmVyztppQN8b=aVp6MhPGLGaswkeTFE3tRa7QDHndsH9g@mail.gmail.com>
Subject: Re: Side-by-side configuration is incorrect reported as permission denied
From: Pawel Jasinski <pawel DOT jasinski AT gmail DOT com>
To: cygwin AT cygwin DOT 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 guys,

is that what we talking about (see patch below)?
If anybody is concerned about performance, I would be happy to rewrite
lookup to use some sort of hashing

I also tried to use koders.com to search for exec* and EACCES.
It doesn't look like any code indexed by koders is fishing
specifically for EACCES after call to exec* to do some magic recovery.


--pawel

Index: newlib/libc/include/sys/errno.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/errno.h,v
retrieving revision 1.18
diff -u -r1.18 errno.h
--- newlib/libc/include/sys/errno.h     26 Dec 2010 21:11:38 -0000      1.18
+++ newlib/libc/include/sys/errno.h     13 Aug 2012 17:48:33 -0000
@@ -116,7 +116,9 @@
 #define EBADFD 81      /* f.d. invalid for this operation */
 #define EREMCHG 82     /* Remote address changed */
 #define ELIBACC 83     /* Can't access a needed shared lib */
+#endif
 #define ELIBBAD 84     /* Accessing a corrupted shared lib */
+#ifdef __LINUX_ERRNO_EXTENSIONS__
 #define ELIBSCN 85     /* .lib section in a.out corrupted */
 #define ELIBMAX 86     /* Attempting to link in too many libs */
 #define ELIBEXEC 87    /* Attempting to exec a shared library */

Index: winsup/cygwin/errno.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/errno.cc,v
retrieving revision 1.87
diff -u -r1.87 errno.cc
--- winsup/cygwin/errno.cc      3 Dec 2011 21:43:25 -0000       1.87
+++ winsup/cygwin/errno.cc      13 Aug 2012 17:48:44 -0000
@@ -157,6 +157,7 @@
   X (WORKING_SET_QUOTA,                EAGAIN),
   X (WRITE_PROTECT,            EROFS),
   X (PRIVILEGE_NOT_HELD,       EPERM),
+  X (SXS_CANT_GEN_ACTCTX, ELIBBAD),
   { 0, NULL, 0}
 };

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