* path.cc (path_conv::check): Don't call set_exec for files on "noacl"

mount points.
This commit is contained in:
Corinna Vinschen 2009-06-02 13:29:30 +00:00
parent e17c0a23e3
commit fa986bf9cd
2 changed files with 9 additions and 1 deletions

View File

@ -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> 2009-05-30 Christopher Faylor <me+cygwin@cgf.cx>
* strfuncs.cc (sys_cp_mbstowcs): Treat src as unsigned char *. Convert * strfuncs.cc (sys_cp_mbstowcs): Treat src as unsigned char *. Convert

View File

@ -1046,7 +1046,10 @@ out:
if (is_msdos) if (is_msdos)
fs.has_acls (false); fs.has_acls (false);
debug_printf ("this->path(%s), has_acls(%d)", path, fs.has_acls ()); 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 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 but set it to not executable since it will be figured out
later by anything which cares about this. */ later by anything which cares about this. */