summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2017-12-14 16:57:55 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-12-14 16:57:55 (GMT)
commit233ef249cc5c18d796fb581747179c5e062b4083 (patch)
tree5aacc95d9b6ae9869bc2f5ce44b4451493ec34e3 /Modules/posixmodule.c
parent02a0a19206da6902c3855a1fa09e60b208474cfa (diff)
downloadcpython-233ef249cc5c18d796fb581747179c5e062b4083.zip
cpython-233ef249cc5c18d796fb581747179c5e062b4083.tar.gz
cpython-233ef249cc5c18d796fb581747179c5e062b4083.tar.bz2
bpo-32277: Fix exception raised from chmod(..., follow_symlinks=False) (#4797)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index de32327..fb879e3 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2827,6 +2827,7 @@ os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd,
dir_fd, follow_symlinks);
else
follow_symlinks_specified("chmod", follow_symlinks);
+ return NULL;
}
else
#endif