summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 03dc0b803..dfa2e2177 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -1240,8 +1240,9 @@ rootdir (const char *full_path, char *root_path)
*rootp++ = '\\';
*rootp = '\0';
- /* This also determines whether reparse points are available. */
- if (!wincap.has_guid_volumes ())
+ /* This determines whether reparse points are available. Reparse points
+ on remote shares are not recognized by Windows. */
+ if (!wincap.has_guid_volumes () || GetDriveType (root_path) == DRIVE_REMOTE)
return root_path;
PREPARSE_DATA_BUFFER rp = (PREPARSE_DATA_BUFFER)