summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2022-10-08 04:00:00 (GMT)
committerGitHub <noreply@github.com>2022-10-08 04:00:00 (GMT)
commit15732114b8a110668baf982e00ffb26081a8bac9 (patch)
tree02eb20f892d42b2320d26c2405ac49219e3a233a /Modules/posixmodule.c
parent52dab90500abe30eedfb908ee3881a68b8bd2c17 (diff)
downloadcpython-15732114b8a110668baf982e00ffb26081a8bac9.zip
cpython-15732114b8a110668baf982e00ffb26081a8bac9.tar.gz
cpython-15732114b8a110668baf982e00ffb26081a8bac9.tar.bz2
[3.11] gh-96288: Add a sentence to `os.mkdir`'s docstring. (GH-96271). (#98065)
(cherry picked from commit 1523c9e9d47e7d67e4889987ff0f38eb7b881fdd) Co-authored-by: Hagai Helman Tov <hagai.helman@gmail.com>
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 4bebbbd..a45179f 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4560,12 +4560,13 @@ If dir_fd is not None, it should be a file descriptor open to a directory,
dir_fd may not be implemented on your platform.
If it is unavailable, using it will raise a NotImplementedError.
-The mode argument is ignored on Windows.
+The mode argument is ignored on Windows. Where it is used, the current umask
+value is first masked out.
[clinic start generated code]*/
static PyObject *
os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd)
-/*[clinic end generated code: output=a70446903abe821f input=e965f68377e9b1ce]*/
+/*[clinic end generated code: output=a70446903abe821f input=a61722e1576fab03]*/
{
int result;
#ifdef HAVE_MKDIRAT