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:
parent
ac308d0a6f
commit
868b50af17
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue