diff options
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 4aafe6bae..c5b5bee9a 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -1083,7 +1083,7 @@ just_shell: /* Check if script is executable. Otherwise we start non-executable scripts successfully, which is incorrect behaviour. */ - if (check_file_access (real_path, X_OK) < 0) + if (real_path.has_acls () && check_file_access (real_path, X_OK) < 0) return -1; /* errno is already set. */ /* Replace argv[0] with the full path to the script if this is the |