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).
This commit is contained in:
Guido van Rossum 2000-04-26 20:32:08 +00:00
parent ac308d0a6f
commit 868b50af17
1 changed files with 1 additions and 1 deletions

View File

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