From 079db16bf7ae41fa9a09640296bb2f3031971d08 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 9 Oct 2008 14:23:09 +0000 Subject: * fhandler_disk_file.cc (fhandler_base::fstat_helper): Check for executable suffixes here in case we're on a file system not supporting permission. * path.cc (path_conv::check): Drop check for executable suffixes. --- winsup/cygwin/path.cc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'winsup/cygwin/path.cc') 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 -- cgit v1.2.3