mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
posix_execve(): add missing argument for "et" format in PyArg_Parse()
call. This caused mysterious crashes (hard to debug because it was happening in a child process).
This commit is contained in:
parent
2314a0470f
commit
1e700d24e9
1 changed files with 1 additions and 0 deletions
|
|
@ -2007,6 +2007,7 @@ posix_execve(PyObject *self, PyObject *args)
|
||||||
for (i = 0; i < argc; i++) {
|
for (i = 0; i < argc; i++) {
|
||||||
if (!PyArg_Parse((*getitem)(argv, i),
|
if (!PyArg_Parse((*getitem)(argv, i),
|
||||||
"et;execve() arg 2 must contain only strings",
|
"et;execve() arg 2 must contain only strings",
|
||||||
|
Py_FileSystemDefaultEncoding,
|
||||||
&argvlist[i]))
|
&argvlist[i]))
|
||||||
{
|
{
|
||||||
lastarg = i;
|
lastarg = i;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue