Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-09-10 00:26:21 +0300
committerCorinna Vinschen <corinna@vinschen.de>2023-09-10 00:28:55 +0300
commit5bbe0e56c617fbdf608d416592b6609af0e73211 (patch)
tree4e627b3f40b70b66a2ea96b059c2e11fbd76e616 /winsup
parentc0aa6ac30ec483ad6da6af701625e7aea7536663 (diff)
Cygwin: NFS: remove recognizing native symlinks as FIFOs
Given the downsides of NFS symlinks as FIFOs, drop the code added to recognize them as such. Fixes: 622fb0776ea3 ("Cygwin: enable usage of FIFOs on NFS") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/path.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 0c9d3921a..1c3583d76 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -3532,21 +3532,6 @@ restart:
{
case NF3LNK:
res = check_nfs_symlink (h);
- /* Enable Cygwin-created FIFOs to be recognized as FIFOs.
- We have to overwrite the NFS fattr3 data, otherwise the
- info returned by Cygwin's stat will still claim the file
- is a symlink. */
- if (res && contents[0] == ':' && contents[1] == '\\'
- && parse_device (contents) && major == _major (FH_FIFO))
- {
- conv_hdl.nfsattr ()->type = NF3FIFO;
- conv_hdl.nfsattr ()->mode = mode;
- conv_hdl.nfsattr ()->size = 0;
- /* Marker for fhandler_base::fstat_by_nfs_ea not to override
- the cached fattr3 data with fresh data from the filesystem,
- even if the handle is used for other purposes than stat. */
- conv_hdl.nfsattr ()->filler1 = NF3FIFO;
- }
break;
case NF3FIFO:
/* Enable real FIFOs recognized as such. */