diff options
author | Christopher Faylor <me@cgf.cx> | 2005-10-12 20:38:38 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-10-12 20:38:38 +0000 |
commit | bf1550b6f8387fe892c6e6e1c86316634a0604ae (patch) | |
tree | 7d9311a5cda548bc12d789eec3b78f77b43714c3 /winsup/cygwin/path.cc | |
parent | 48882f9a07b5fcc2a892387d9af079a774482f1e (diff) | |
download | cygnal-bf1550b6f8387fe892c6e6e1c86316634a0604ae.tar.gz cygnal-bf1550b6f8387fe892c6e6e1c86316634a0604ae.tar.bz2 cygnal-bf1550b6f8387fe892c6e6e1c86316634a0604ae.zip |
* dir.cc (mkdir): Abandon use of PC_WRITABLE.
(rmdir): Ditto.
* path.h (PC_WRITABLE): Delete.
* path.cc (path_conv::check): Remove PC_WRITABLE accommodations. Revisit
later.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 9 |
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. |