summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-06-02 13:29:30 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-06-02 13:29:30 +0000
commitfa986bf9cd546690b92a444881835b2454d5c434 (patch)
tree965e953f8a7bd62ee68a9bbfe3c568f766ef072f /winsup/cygwin
parente17c0a23e32e35d037e75e21389c485c4fded87d (diff)
downloadcygnal-fa986bf9cd546690b92a444881835b2454d5c434.tar.gz
cygnal-fa986bf9cd546690b92a444881835b2454d5c434.tar.bz2
cygnal-fa986bf9cd546690b92a444881835b2454d5c434.zip
* path.cc (path_conv::check): Don't call set_exec for files on "noacl"
mount points.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/path.cc5
2 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index b7ea755b2..29a0e0f7e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-02 Corinna Vinschen <corinna@vinschen.de>
+
+ * path.cc (path_conv::check): Don't call set_exec for files on "noacl"
+ mount points.
+
2009-05-30 Christopher Faylor <me+cygwin@cgf.cx>
* strfuncs.cc (sys_cp_mbstowcs): Treat src as unsigned char *. Convert
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index dd281c0e4..63850d394 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1046,7 +1046,10 @@ out:
if (is_msdos)
fs.has_acls (false);
debug_printf ("this->path(%s), has_acls(%d)", path, fs.has_acls ());
- if (fs.has_acls ())
+ /* CV: We could use this->has_acls() but I want to make sure that
+ we don't forget that the PATH_NOACL flag must be taken into
+ account here. */
+ if (!(path_flags & PATH_NOACL) && fs.has_acls ())
set_exec (0); /* We really don't know if this is executable or not here
but set it to not executable since it will be figured out
later by anything which cares about this. */