mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
bpo-32277: Fix exception raised from chmod(..., follow_symlinks=False) (GH-4797) (#4869)
(cherry picked from commit 233ef249cc
)
This commit is contained in:
parent
4f37105277
commit
d1cb1067a8
2 changed files with 4 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
Raise ``NotImplementedError`` instead of ``SystemError`` on platforms where
|
||||
``chmod(..., follow_symlinks=False)`` is not supported. Patch by Anthony
|
||||
Sottile.
|
|
@ -2790,6 +2790,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue