Cygwin: path_conv::check: handle error from fhandler_process::exists
fhandler_process::exists is called when we are checking a path starting with "/proc/<pid>/fd". If it returns virt_none and sets an errno, there is no need for further checking. Just set 'error' and return.
This commit is contained in:
parent
58cc67d653
commit
6775ac8cb5
|
@ -809,6 +809,15 @@ path_conv::check (const char *src, unsigned opt,
|
||||||
delete fh;
|
delete fh;
|
||||||
goto retry_fs_via_processfd;
|
goto retry_fs_via_processfd;
|
||||||
}
|
}
|
||||||
|
else if (file_type == virt_none && dev == FH_PROCESSFD)
|
||||||
|
{
|
||||||
|
error = get_errno ();
|
||||||
|
if (error)
|
||||||
|
{
|
||||||
|
delete fh;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
delete fh;
|
delete fh;
|
||||||
}
|
}
|
||||||
switch (file_type)
|
switch (file_type)
|
||||||
|
|
Loading…
Reference in New Issue