From: Guido van Rossum Date: Wed, 26 Apr 2000 20:32:08 +0000 (+0000) Subject: Michael Hudson fixes a case where execv() is called (for a test) with X-Git-Tag: v2.0b1~1929 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=868b50af1710442a8f92b266ff507259bc09e7de;p=python 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). --- diff --git a/Lib/os.py b/Lib/os.py index 7f70f30e72..c7a3cc5a57 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: