Cygwin: fix regression in O_TMPFILE | O_EXCL case

The new proc fd code accidentally allowed to linkat an O_TMPFILE
even if the file has been opened with O_EXCL.  This patch fixes it.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2019-01-06 22:39:45 +01:00
parent 8a17b1b2bf
commit 9dae73edb8
6 changed files with 31 additions and 12 deletions

View File

@@ -187,7 +187,10 @@ struct _sigcommune
void *_si_process_handle;
__extension__ union
{
int _si_fd;
struct {
int _si_fd;
uint32_t _si_flags;
};
int64_t _si_pipe_unique_id;
char *_si_str;
};