Cygwin: Mark all O_TMPFILEs as deleted
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
7dbe307e38
commit
c90f4c0e27
|
@ -140,11 +140,8 @@ char *fhandler_base::get_proc_fd_name (char *buf)
|
||||||
IO_STATUS_BLOCK io;
|
IO_STATUS_BLOCK io;
|
||||||
FILE_STANDARD_INFORMATION fsi;
|
FILE_STANDARD_INFORMATION fsi;
|
||||||
|
|
||||||
/* If the file had been opened with O_TMPFILE | O_EXCL, don't
|
/* If the file had been opened with O_TMPFILE, don't expose the filename. */
|
||||||
expose the filename. linkat is supposed to return ENOENT in this
|
if ((get_flags () & O_TMPFILE)
|
||||||
case. FIXME: As soon as we open by handle from /proc/<PID>/fd,
|
|
||||||
the O_EXCL test has to be moved to open. */
|
|
||||||
if ((get_flags () & (O_TMPFILE | O_EXCL)) == (O_TMPFILE | O_EXCL)
|
|
||||||
|| (get_device () == FH_FS
|
|| (get_device () == FH_FS
|
||||||
&& NT_SUCCESS (NtQueryInformationFile (get_handle (), &io,
|
&& NT_SUCCESS (NtQueryInformationFile (get_handle (), &io,
|
||||||
&fsi, sizeof fsi,
|
&fsi, sizeof fsi,
|
||||||
|
|
Loading…
Reference in New Issue