Commit 868b50af authored by Guido van Rossum's avatar Guido van Rossum

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).
parent ac308d0a
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment