diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-09-24 16:41:33 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-09-24 16:41:33 +0400 |
commit | 3498f76deb52fcff5c4f8d20050ec844608d108d (patch) | |
tree | b732ab1300742d96e02ccfedcbd8cbd1a1a34585 /winsup/cygwin/fhandler_disk_file.cc | |
parent | b3755579563c2f95758702c7e8f2fc8dd1c53f76 (diff) |
* errno.cc (errmap): Map ERROR_BAD_NET_RESP to ENOSYS.
* fhandler_disk_file.cc (fhandler_disk_file::facl): Handle ENOSYS and
point to the explanation.
* ntdll.h (STATUS_NOT_IMPLEMENTED): Define.
* path.cc (symlink_info::check): Handle the inability of NT4 to use
FileNetworkOpenInformation on share root dirs in either direction.
* path.h (slash_unc_prefix_p): Remove unused declaration.
* security.cc (get_info_from_sd): Handle ENOSYS from get_file_sd.
Explain when this happens.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 6a28ac15c..3cb831168 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1054,9 +1054,15 @@ cant_access_acl: set_errno(EFAULT); else res = getacl (get_stat_handle (), pc, nentries, aclbufp); + /* For this ENOSYS case, see security.cc:get_file_attribute(). */ + if (res == -1 && get_errno () == ENOSYS) + goto cant_access_acl; break; case GETACLCNT: res = getacl (get_stat_handle (), pc, 0, NULL); + /* Ditto. */ + if (res == -1 && get_errno () == ENOSYS) + goto cant_access_acl; break; default: set_errno (EINVAL); |