python/dist/src/Modules posixmodule.c, 2.326, 2.327
Update of /cvsroot/python/python/dist/src/Modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27542/Modules Modified Files: posixmodule.c Log Message: Patch #1009075, bug #952953: allow execve with empty 2nd argument Index: posixmodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v retrieving revision 2.326 retrieving revision 2.327 diff -u -d -r2.326 -r2.327 --- posixmodule.c 30 Aug 2004 17:36:46 -0000 2.326 +++ posixmodule.c 27 Sep 2004 19:54:33 -0000 2.327 @@ -2171,12 +2171,6 @@ return NULL; } - if (argc == 0) { - PyErr_SetString(PyExc_ValueError, "execv() arg 2 must not be empty"); - PyMem_Free(path); - return NULL; - } - argvlist = PyMem_NEW(char *, argc+1); if (argvlist == NULL) { PyMem_Free(path); @@ -2253,12 +2247,6 @@ goto fail_0; } - if (argc == 0) { - PyErr_SetString(PyExc_ValueError, - "execve() arg 2 must not be empty"); - goto fail_0; - } - argvlist = PyMem_NEW(char *, argc+1); if (argvlist == NULL) { PyErr_NoMemory();
participants (1)
-
arigoļ¼ users.sourceforge.net