OSDN Git Service

* path.cc (path_conv::path_conv): Only assume executability by suffix
authorcorinna <corinna>
Wed, 8 Oct 2008 14:58:26 +0000 (14:58 +0000)
committercorinna <corinna>
Wed, 8 Oct 2008 14:58:26 +0000 (14:58 +0000)
on file systems not supporting permissions.

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

index 5d9a4f7..2d2396a 100644 (file)
@@ -1,3 +1,8 @@
+2008-10-08  Corinna Vinschen  <corinna@vinschen.de>
+
+       * path.cc (path_conv::path_conv): Only assume executability by suffix
+       on file systems not supporting permissions.
+
 2008-10-07  Christopher Faylor  <me+cygwin@cgf.cx>
 
        * pthread.cc (pthread_create): Very minor formatting change.
index b70e0a2..3b5163e 100644 (file)
@@ -1248,7 +1248,8 @@ out:
   if (saw_symlinks)
     set_has_symlinks ();
 
-  if (!error && !isdir () && !(path_flags & PATH_ALL_EXEC))
+  if (!error && !isdir () && !(path_flags & PATH_ALL_EXEC)
+      && !fs.has_acls () && !fs.is_nfs ())
     {
       const char *p = strchr (path, '\0') - 4;
       if (p >= path &&