This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Linux, 'env ./.' triggers an exec() that fails with EACCES, and exits with status 126 (file was located, but cannot be executed). But on Cygwin, the exec() fails with ENOENT, and env exits with status 127 (file could not be located). This is particularly insidious, because some programs depend on knowing the difference between the two types of exec() errors (not present, vs. not executable). For example, one test of the findutils testsuite fails, because 'echo | xargs /' gives the wrong status. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |