From 868b50af1710442a8f92b266ff507259bc09e7de Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 26 Apr 2000 20:32:08 +0000 Subject: Michael Hudson fixes a case where execv() is called (for a test) with an empty argument list -- another patch he's checking in will make this illegal (the first argument should always be the program name). --- Lib/os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/os.py b/Lib/os.py index 7f70f30..c7a3cc5 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -252,7 +252,7 @@ def _execvpe(file, args, env=None): if not _notfound: import tempfile # Exec a file that is guaranteed not to exist - try: execv(tempfile.mktemp(), ()) + try: execv(tempfile.mktemp(), ('blah',)) except error, _notfound: pass exc, arg = error, _notfound for dir in PATH: -- cgit v0.12