diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2020-12-01 09:37:07 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-12-01 09:37:10 +0100 |
commit | 80e35a211f69f23fa57003a08d1758657364f00e (patch) | |
tree | 8d4b3c2cebf67cad933905584ca6b70387e0ffd3 | |
parent | 3434d35a64736f0b77a12f61784c2caa33ac44cf (diff) | |
download | newlib-80e35a211f69f23fa57003a08d1758657364f00e.zip newlib-80e35a211f69f23fa57003a08d1758657364f00e.tar.gz newlib-80e35a211f69f23fa57003a08d1758657364f00e.tar.bz2 |
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>
-rw-r--r-- | winsup/cygwin/fhandler_procsys.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_procsys.cc b/winsup/cygwin/fhandler_procsys.cc index d2540d0..f8abbe7 100644 --- a/winsup/cygwin/fhandler_procsys.cc +++ b/winsup/cygwin/fhandler_procsys.cc @@ -175,13 +175,10 @@ fhandler_procsys::exists (struct stat *buf) badly written. */ if (NT_SUCCESS (status)) { - if (ffdi.DeviceType == FILE_DEVICE_NETWORK_FILE_SYSTEM) - file_type = virt_blk; - else if (ffdi.DeviceType == FILE_DEVICE_NAMED_PIPE) + if (ffdi.DeviceType == FILE_DEVICE_NAMED_PIPE) file_type = internal ? virt_blk : virt_pipe; else if (ffdi.DeviceType == FILE_DEVICE_DISK || ffdi.DeviceType == FILE_DEVICE_CD_ROM - || ffdi.DeviceType == FILE_DEVICE_DFS || ffdi.DeviceType == FILE_DEVICE_VIRTUAL_DISK) { /* Check for file attributes. If we get them, we peeked |