summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2003-02-19 04:08:27 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2003-02-19 04:08:27 (GMT)
commit05107b6af7c492e8090bf3a2de06cc8930d84102 (patch)
treef32073edad7d6403b5ef9816c090cedc4a295b9c /Modules
parent90195e2616288d6dfdb9a081edaab684fd59ef7e (diff)
downloadcpython-05107b6af7c492e8090bf3a2de06cc8930d84102.zip
cpython-05107b6af7c492e8090bf3a2de06cc8930d84102.tar.gz
cpython-05107b6af7c492e8090bf3a2de06cc8930d84102.tar.bz2
os.mkdir() would crash with a Unicode filename and mode param.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 975c343..d203378 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1863,7 +1863,7 @@ posix_mkdir(PyObject *self, PyObject *args)
#ifdef Py_WIN_WIDE_FILENAMES
if (unicode_file_names()) {
PyUnicodeObject *po;
- if (PyArg_ParseTuple(args, "U|i:mkdir", &po)) {
+ if (PyArg_ParseTuple(args, "U|i:mkdir", &po, &mode)) {
Py_BEGIN_ALLOW_THREADS
/* PyUnicode_AS_UNICODE OK without thread lock as
it is a simple dereference. */