* fhandler_process.cc (fhandler_process::fill_filebuf): Disable

stripping the .exe suffix from the link target in PROCESS_EXE and
	PROCESS_EXENAME case.
	* path.cc (realpath): Tack on .exe suffix if necessary.
This commit is contained in:
Corinna Vinschen
2006-01-24 17:40:55 +00:00
parent 3acaaf543f
commit 4aac2d2709
3 changed files with 28 additions and 2 deletions

View File

@ -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;