Corinna Vinschen corinna-cygwin@cygwin.com
Thu Mar 17 16:48:00 GMT 2016

On Mar 17 15:27, Achim Gratz wrote:
> Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> > I released a new Cygwin TEST version 2.5.0-0.7.
> While testing this I got the following from tcsh:
> > touch permtest
> > chmod 0 permtest
> > ./permtest
> ./permtest: Bad file descriptor.
> I would have expected
> $ ./permtest
> ./permtest: Permission denied.
> which is what I indeed get with bash/dash.
> I can't test at the moment if that was happening with 2.4.1 also.

During execve the file is opened to check if it's a scrip or a real
executable.  If opening the file fails, Cygwin neglects to set the
correct error code so you just get the previous errno value.

Fixed in the git repo.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160317/75753a84/attachment.sig>

More information about the Cygwin mailing list