Cygwin: open: support Linux-specific O_PATH flag

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2019-01-07 19:33:11 +01:00
parent 91ca95ae4a
commit b93022a82d
8 changed files with 74 additions and 4 deletions

View File

@@ -930,6 +930,11 @@ mmap64 (void *addr, size_t len, int prot, int flags, int fd, off_t off)
cygheap_fdget cfd (fd);
if (cfd < 0)
goto out;
if (cfd->get_flags () & O_PATH)
{
set_errno (EBADF);
goto out;
}
fh = cfd;