Side-by-side configuration is incorrect reported as permission denied
Pawel Jasinski
pawel.jasinski@gmail.com
Tue Aug 14 00:42:00 GMT 2012
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
More information about the Cygwin
mailing list