]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: NFS: remove recognizing native symlinks as FIFOs
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 9 Sep 2023 21:26:21 +0000 (23:26 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 9 Sep 2023 21:28:55 +0000 (23:28 +0200)
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>
winsup/cygwin/path.cc

index 0c9d3921a0ea6c8dc114c916651babb7c1e576bc..1c3583d763a9685d9022156c360bb9e93d25bd2a 100644 (file)
@@ -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. */
This page took 0.034784 seconds and 5 git commands to generate.