From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 85D973857831; Tue, 1 Dec 2020 08:40:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85D973857831 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: /proc/sys FS: don't export NFS and DFS as block devices X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 3434d35a64736f0b77a12f61784c2caa33ac44cf X-Git-Newrev: 80e35a211f69f23fa57003a08d1758657364f00e Message-Id: <20201201084018.85D973857831@sourceware.org> Date: Tue, 1 Dec 2020 08:40:18 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2020 08:40:18 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=80e35a211f69f23fa57003a08d1758657364f00e commit 80e35a211f69f23fa57003a08d1758657364f00e Author: Corinna Vinschen Date: Tue Dec 1 09:37:07 2020 +0100 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 Diff: --- winsup/cygwin/fhandler_procsys.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/winsup/cygwin/fhandler_procsys.cc b/winsup/cygwin/fhandler_procsys.cc index d2540d0a1..f8abbe7c0 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