diff options
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 9b85a93d9..442e7bb90 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -1248,17 +1248,6 @@ out: if (saw_symlinks) set_has_symlinks (); - if (!error && !isdir () && !(path_flags & PATH_ALL_EXEC) - && !fs.has_acls () && !fs.is_nfs ()) - { - const char *p = strchr (path, '\0') - 4; - if (p >= path && - (ascii_strcasematch (".exe", p) || - ascii_strcasematch (".bat", p) || - ascii_strcasematch (".com", p))) - path_flags |= PATH_EXEC; - } - if (!(opt & PC_POSIX)) normalized_path_size = 0; else |