summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-01-11 16:13:11 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-01-11 16:13:11 +0000
commitb98c66ee2c65f9281aba61760002e63ff30e842a (patch)
tree5f1e2bc32d488f901e44732f6d36ccaf567e4bb8 /winsup/cygwin/path.cc
parent45cda16a7fd6f9076d410386421c7e79583612a8 (diff)
downloadcygnal-b98c66ee2c65f9281aba61760002e63ff30e842a.tar.gz
cygnal-b98c66ee2c65f9281aba61760002e63ff30e842a.tar.bz2
cygnal-b98c66ee2c65f9281aba61760002e63ff30e842a.zip
* errno.cc (errmap): Set errno to ENOENT instead of ENOSHARE throughout.
* path.cc (path_conv::check): Set to and check for ENOENT instead of ENOSHARE. * path.cc (symlink_info::check): Fix Samba 3.2.x comment.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 2cca8f8e2..aa635103d 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -901,7 +901,7 @@ is_virtual_symlink:
else
break;
}
- else if (sym.error && sym.error != ENOENT && sym.error != ENOSHARE)
+ else if (sym.error && sym.error != ENOENT)
{
error = sym.error;
goto out;
@@ -996,7 +996,7 @@ out:
}
else if (isvirtual_dev (dev.devn) && fileattr == INVALID_FILE_ATTRIBUTES)
{
- error = dev.devn == FH_NETDRIVE ? ENOSHARE : ENOENT;
+ error = ENOENT;
return;
}
else if (!need_directory || error)
@@ -2162,8 +2162,8 @@ symlink_info::check (char *path, const suffix_info *suffixes, unsigned opt,
eabuf, easize);
/* No right to access EAs or EAs not supported? */
if (status == STATUS_ACCESS_DENIED || status == STATUS_EAS_NOT_SUPPORTED
- /* Or a bug in Samba 3.2.x when accessing a share's root dir which
- has EAs enabled? */
+ /* Or a bug in Samba 3.2.x (x <= 7) when accessing a share's root dir
+ which has EAs enabled? */
|| status == STATUS_INVALID_PARAMETER)
{
no_ea = true;