* path.cc (path_conv::path_conv): Only assume executability by suffix

on file systems not supporting permissions.
This commit is contained in:
Corinna Vinschen
2008-10-08 14:58:26 +00:00
parent c4cb50b3a8
commit 3ae5cb32c5
2 changed files with 7 additions and 1 deletions

View 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 &&