Cygwin: return correct FH_PROCESSFD for files under /proc/PID/fd subdir

This allows easier handling of fd symlinks.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2019-01-05 21:36:34 +01:00
parent 36ff506ddc
commit f72191ac01
2 changed files with 11 additions and 3 deletions

View File

@ -806,7 +806,7 @@ path_conv::check (const char *src, unsigned opt,
fh->fill_filebuf ();
symlen = sym.set (fh->get_filebuf ());
}
else if (file_type == virt_fsdir && dev == FH_PROCESS)
else if (file_type == virt_fsdir && dev == FH_PROCESSFD)
{
/* FIXME: This is YA bad hack to workaround that
we're checking for isvirtual_dev at this point.