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

@ -2578,7 +2578,7 @@ class fhandler_process: public fhandler_proc
class fhandler_process_fd : public fhandler_process
{
fhandler_base *fetch_fh (HANDLE &);
fhandler_base *fetch_fh (HANDLE &, uint32_t);
public:
fhandler_process_fd () : fhandler_process () {}