OSDN Git Service

* path.cc (symlink_info::check): Remove erroneous assumption about
authorcorinna <corinna>
Thu, 30 Sep 2010 10:42:34 +0000 (10:42 +0000)
committercorinna <corinna>
Thu, 30 Sep 2010 10:42:34 +0000 (10:42 +0000)
required permissions when reading NFS symlinks.

winsup/cygwin/ChangeLog
winsup/cygwin/path.cc

index c6dc225..c185a0a 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-30  Corinna Vinschen  <corinna@vinschen.de>
+
+       * path.cc (symlink_info::check): Remove erroneous assumption about
+       required permissions when reading NFS symlinks.
+
 2010-09-29  Christopher Faylor  <me+cygwin@cgf.cx>
 
        * fhandler_tty.cc (fhandler_tty_slave::init): Revert to using
index 887885d..c1f306e 100644 (file)
@@ -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;
        }