From: Pawel Jasinski <pawel.jasinski@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Side-by-side configuration is incorrect reported as permission denied
Date: Tue, 14 Aug 2012 00:42:00 -0000 [thread overview]
Message-ID: <CA+7con=Fbu91rQ6eudWpAxH6XQvPaC5jerM5U3=ByNK5a1FUhg@mail.gmail.com> (raw)
In-Reply-To: <50295185.7020908@dancol.org>
hi,
How about this one. Bash has already some cygwin specific stuff.
rejap <at> 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
next prev parent reply other threads:[~2012-08-14 0:08 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-13 18:56 Pawel Jasinski
2012-08-13 19:12 ` Christopher Faylor
2012-08-13 21:49 ` Daniel Colascione
2012-08-14 0:42 ` Pawel Jasinski [this message]
2012-08-14 3:12 ` Christopher Faylor
2012-08-14 8:38 ` Eric Blake
2012-08-14 9:16 ` Pawel Jasinski
2012-08-14 15:10 ` Christopher Faylor
2012-08-14 21:37 ` Pawel Jasinski
2012-08-15 5:37 ` Christopher Faylor
-- strict thread matches above, loose matches on Subject: below --
2012-08-11 0:45 Andrew DeFaria
2012-08-11 10:35 ` Larry Hall (Cygwin)
2012-08-11 17:32 ` Earnie Boyd
2012-08-11 19:23 ` Andrew DeFaria
2012-08-11 19:54 ` Christopher Faylor
2012-08-12 4:24 ` Cliff Hones
2012-08-12 9:07 ` Andrew DeFaria
2012-08-12 12:35 ` Pawel Jasinski
2012-08-12 17:56 ` Christopher Faylor
2012-08-12 19:59 ` Pawel Jasinski
2012-08-12 20:54 ` Earnie Boyd
2012-08-12 21:30 ` Christopher Faylor
2012-08-13 1:05 ` Pawel Jasinski
2012-08-13 8:28 ` Herbert Stocker
2012-08-13 10:05 ` Corinna Vinschen
2012-08-13 12:51 ` Herbert Stocker
2012-08-13 13:11 ` Earnie Boyd
2012-08-13 13:21 ` Corinna Vinschen
2012-08-13 13:28 ` Earnie Boyd
2012-08-13 14:32 ` Corinna Vinschen
2012-08-13 13:51 ` Cliff Hones
2012-08-13 15:15 ` Christopher Faylor
2012-08-13 3:49 ` Andrew DeFaria
2012-08-13 8:48 ` Corinna Vinschen
2012-08-13 14:43 ` Andrew DeFaria
2012-08-13 14:59 ` Corinna Vinschen
2012-08-13 15:01 ` Andrew DeFaria
2012-08-13 15:22 ` Corinna Vinschen
2012-08-13 15:40 ` Andrew DeFaria
2012-08-13 15:33 ` Christopher Faylor
2012-08-13 16:02 ` Andrew DeFaria
2012-08-13 16:19 ` Corinna Vinschen
2012-08-13 17:57 ` Andrew DeFaria
2012-08-14 21:11 ` Andrey Repin
2012-08-15 4:23 ` Christopher Faylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+7con=Fbu91rQ6eudWpAxH6XQvPaC5jerM5U3=ByNK5a1FUhg@mail.gmail.com' \
--to=pawel.jasinski@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).