From: Martin v. Löwis Date: Tue, 5 May 2009 17:17:55 +0000 (+0000) Subject: Issue #5943: Fix lchflags crash. X-Git-Tag: v3.1b1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4adbc34aaf29cef494ab8a92acfa63546f5d2a19;p=python Issue #5943: Fix lchflags crash. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 87ab2fa769..2050d5a1a7 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1981,7 +1981,7 @@ posix_lchflags(PyObject *self, PyObject *args) unsigned long flags; int res; if (!PyArg_ParseTuple(args, "O&k:lchflags", - PyUnicode_FSConverter, &path, &flags)) + PyUnicode_FSConverter, &opath, &flags)) return NULL; path = bytes2str(opath, 1); Py_BEGIN_ALLOW_THREADS