Subject: bug in execvp()
From: [email-masked] (Fergus Henderson)

5 Dec 1996 11:06:27 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Content-Type: text
Original-To: [email-masked], [email-masked]
X-Mailer: ELM [version 2.4 PL24]
Original-Sender: [email-masked]

Hi,

Cygnus's newlib has a bug in execvp():
it handles relative path names incorrectly.
Specifically, it searches the PATH (only) even
for filenames that include `/', such as `./foo'.
If your PATH does not include ".", then gnu-win32's execvp()
will fail on such cases.

	main() {
		char *argv[] = { "./foo", 0 };
		execvp(argv[0], argv);
	}

This bug causes `make' in gnu-win32 to fail when executing
commands such as `./foo' if PATH does not include ".".

-- 
Fergus Henderson <[email-masked]>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger [email-masked]         |     -- the last words of T. S. Garp.
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".