diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-04-13 20:47:21 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-04-13 20:47:21 +0400 |
commit | 9bf7c7e96cf97fb10054775cfc84a92b4f45dea0 (patch) | |
tree | d528c007b7748d18400c7cec4ee9fa20665e9f9d /winsup/cygwin/fhandler_process.cc | |
parent | a7ff2096f7f5ca58a2ea202033a579675e695199 (diff) |
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Simplify
code which checks for symlinks. Fix problem with UNC paths.
* environ.cc (struct parse_thing): Remove transparent_exe option.
* syscalls.cc (transparent_exe): Remove.
(unlink): Always add stat_suffixes, drop transparent_exe check.
(open): Ditto.
(link): Ditto.
(pathconf): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::link): Ditto.
* fhandler_process.cc (fhandler_process::fill_filebuf): Always remove
.exe suffix.
* path.cc (realpath): Never attach known_suffix.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r-- | winsup/cygwin/fhandler_process.cc | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index a752bfb1c..b64f22175 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -446,17 +446,12 @@ fhandler_process::fill_filebuf () else { mount_table->conv_to_posix_path (p->progname, filebuf, 1); - /* If transparent_exe isn't set, the link keeps its suffix so that - an open(2) call will succeed on /proc/$PID/exe. */ - if (transparent_exe) + int len = strlen (filebuf); + if (len > 4) { - int len = strlen (filebuf); - if (len > 4) - { - char *s = filebuf + len - 4; - if (ascii_strcasematch (s, ".exe")) - *s = 0; - } + char *s = filebuf + len - 4; + if (ascii_strcasematch (s, ".exe")) + *s = 0; } } filesize = strlen (filebuf); |