-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-133562: disable security descriptor handling on unsupported WinAPI partitions #133563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
078f691
243f377
24aeedf
4c98d03
e2ee3d0
8c37fa1
2575d66
2f31305
c71e24f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Disable handling of security descriptors by :func:`os.mkdir` with mode ``0o700`` on WinAPI partitions that do not support it. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5726,6 +5726,7 @@ os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd) | |
|
|
||
| #ifdef MS_WINDOWS | ||
| Py_BEGIN_ALLOW_THREADS | ||
| #if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_SYSTEM) | ||
|
||
| if (mode == 0700 /* 0o700 */) { | ||
| ULONG sdSize; | ||
| pSecAttr = &secAttr; | ||
|
|
@@ -5741,6 +5742,7 @@ os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd) | |
| error = GetLastError(); | ||
| } | ||
| } | ||
| #endif | ||
| if (!error) { | ||
| result = CreateDirectoryW(path->wide, pSecAttr); | ||
| if (secAttr.lpSecurityDescriptor && | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.