Cygwin: /proc/sys FS: don't export NFS and DFS as block devices
Network filesystems are not block devices. Apparently this code hasn't been executed anyway, given how network filesystems are hidden behind \Device\Mup. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
3434d35a64
commit
80e35a211f
|
@ -175,13 +175,10 @@ fhandler_procsys::exists (struct stat *buf)
|
||||||
badly written. */
|
badly written. */
|
||||||
if (NT_SUCCESS (status))
|
if (NT_SUCCESS (status))
|
||||||
{
|
{
|
||||||
if (ffdi.DeviceType == FILE_DEVICE_NETWORK_FILE_SYSTEM)
|
if (ffdi.DeviceType == FILE_DEVICE_NAMED_PIPE)
|
||||||
file_type = virt_blk;
|
|
||||||
else if (ffdi.DeviceType == FILE_DEVICE_NAMED_PIPE)
|
|
||||||
file_type = internal ? virt_blk : virt_pipe;
|
file_type = internal ? virt_blk : virt_pipe;
|
||||||
else if (ffdi.DeviceType == FILE_DEVICE_DISK
|
else if (ffdi.DeviceType == FILE_DEVICE_DISK
|
||||||
|| ffdi.DeviceType == FILE_DEVICE_CD_ROM
|
|| ffdi.DeviceType == FILE_DEVICE_CD_ROM
|
||||||
|| ffdi.DeviceType == FILE_DEVICE_DFS
|
|
||||||
|| ffdi.DeviceType == FILE_DEVICE_VIRTUAL_DISK)
|
|| ffdi.DeviceType == FILE_DEVICE_VIRTUAL_DISK)
|
||||||
{
|
{
|
||||||
/* Check for file attributes. If we get them, we peeked
|
/* Check for file attributes. If we get them, we peeked
|
||||||
|
|
Loading…
Reference in New Issue