diff options
| author | Mark Hammond <mhammond@skippinet.com.au> | 2003-02-19 04:08:27 +0000 |
|---|---|---|
| committer | Mark Hammond <mhammond@skippinet.com.au> | 2003-02-19 04:08:27 +0000 |
| commit | 05107b6af7c492e8090bf3a2de06cc8930d84102 (patch) | |
| tree | f32073edad7d6403b5ef9816c090cedc4a295b9c | |
| parent | 90195e2616288d6dfdb9a081edaab684fd59ef7e (diff) | |
| download | cpython-git-05107b6af7c492e8090bf3a2de06cc8930d84102.tar.gz | |
os.mkdir() would crash with a Unicode filename and mode param.
| -rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 975c343a1c..d203378d3d 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. */ |
