From fa986bf9cd546690b92a444881835b2454d5c434 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 2 Jun 2009 13:29:30 +0000 Subject: * path.cc (path_conv::check): Don't call set_exec for files on "noacl" mount points. --- winsup/cygwin/path.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/path.cc') 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. */ -- cgit v1.2.3