From: Guido van Rossum Date: Fri, 31 Mar 2000 00:48:21 +0000 (+0000) Subject: Oops, the previous patch contained a bug in chmod. Fixed now. X-Git-Tag: v1.6a1~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49679b40b91c30bf6b2ea8aeede9a86c659932b1;p=python Oops, the previous patch contained a bug in chmod. Fixed now. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index f5ac1d5f25..8458d583a8 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -695,10 +695,10 @@ posix_chmod(self, args) char *path; int i; int res; - if (!PyArg_ParseTuple(args, format, &path, &i)) + if (!PyArg_ParseTuple(args, "si", &path, &i)) return NULL; Py_BEGIN_ALLOW_THREADS - res = chmod(path, i); + res = chmod(path, (mode_t)i); Py_END_ALLOW_THREADS if (res < 0) return posix_error_with_filename(path);