summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index cb7d9072d..648ced4ab 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -450,6 +450,11 @@ fhandler_process::fill_filebuf ()
else
{
mount_table->conv_to_posix_path (p->progname, filebuf, 1);
+#if 0
+ /* Temporarily disabled. The link will have a suffix so that
+ an open(2) call will succeed on /proc/$PID/exe now. This
+ might become unnecessary if open(2) handles the .exe suffix
+ at one point. */
int len = strlen (filebuf);
if (len > 4)
{
@@ -457,6 +462,7 @@ fhandler_process::fill_filebuf ()
if (strcasematch (s, ".exe"))
*s = 0;
}
+#endif
}
filesize = strlen (filebuf);
break;