summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 57b10dc7f..6f0f95015 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -925,14 +925,7 @@ virtual_component_retry:
out:
bool strip_tail = false;
- /* If the user wants a directory, do not return a symlink */
- if ((opt & PC_WRITABLE) && (path_flags & PATH_RO))
- {
- debug_printf ("%s is on a read-only filesystem", path);
- error = EROFS;
- return;
- }
- else if (dev.devn == FH_NETDRIVE && component)
+ if (dev.devn == FH_NETDRIVE && component)
{
/* This case indicates a non-existant resp. a non-retrievable
share. This happens for instance if the share is a printer.