mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Issue #5943: Fix lchflags crash.
This commit is contained in:
parent
25e218e381
commit
4adbc34aaf
1 changed files with 1 additions and 1 deletions
|
|
@ -1981,7 +1981,7 @@ posix_lchflags(PyObject *self, PyObject *args)
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int res;
|
int res;
|
||||||
if (!PyArg_ParseTuple(args, "O&k:lchflags",
|
if (!PyArg_ParseTuple(args, "O&k:lchflags",
|
||||||
PyUnicode_FSConverter, &path, &flags))
|
PyUnicode_FSConverter, &opath, &flags))
|
||||||
return NULL;
|
return NULL;
|
||||||
path = bytes2str(opath, 1);
|
path = bytes2str(opath, 1);
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue