summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-03-31 00:48:21 (GMT)
committerGuido van Rossum <guido@python.org>2000-03-31 00:48:21 (GMT)
commit49679b40b91c30bf6b2ea8aeede9a86c659932b1 (patch)
treef143b87d578bd2d418116508ba63d8981ba42930 /Modules/posixmodule.c
parentffd15f5255a600fe6cb6fb38123d58eca51f9987 (diff)
downloadcpython-49679b40b91c30bf6b2ea8aeede9a86c659932b1.zip
cpython-49679b40b91c30bf6b2ea8aeede9a86c659932b1.tar.gz
cpython-49679b40b91c30bf6b2ea8aeede9a86c659932b1.tar.bz2
Oops, the previous patch contained a bug in chmod. Fixed now.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index f5ac1d5..8458d58 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);