From ab3cd8885800a6fcf60b0d503b402d55202257c6 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 30 Sep 2010 10:42:34 +0000 Subject: * path.cc (symlink_info::check): Remove erroneous assumption about required permissions when reading NFS symlinks. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/path.cc | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'winsup') diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c6dc22564..c185a0a08 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-09-30 Corinna Vinschen + + * path.cc (symlink_info::check): Remove erroneous assumption about + required permissions when reading NFS symlinks. + 2010-09-29 Christopher Faylor * fhandler_tty.cc (fhandler_tty_slave::init): Revert to using diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 887885d22..c1f306efa 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -2651,10 +2651,7 @@ restart: (which can be symlinks to directories). */ else if (fs.is_nfs () && !no_ea && !(fileattr & FILE_ATTRIBUTE_DIRECTORY)) { - if (!(access & GENERIC_READ)) - res = 0; - else - res = check_nfs_symlink (h); + res = check_nfs_symlink (h); if (res) break; } -- cgit v1.2.3