GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — gh-118802: Fix ACL use in test for non-English Windows by zooba · Pull Request #118831 · python/cpython Conversation
|
|
Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…H-118831) (cherry picked from commit 82acc5f) Co-authored-by: Steve Dower <[email protected]>
…H-118831) (cherry picked from commit 82acc5f) Co-authored-by: Steve Dower <[email protected]>
|
GH-118837 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-118838 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
(cherry picked from commit 82acc5f) Co-authored-by: Steve Dower <[email protected]>
(cherry picked from commit 82acc5f) Co-authored-by: Steve Dower <[email protected]>
| # Give delete permission. We are the file owner, so we can do this | ||
| # even though we removed all permissions earlier. | ||
| subprocess.check_output([ICACLS, filename, "/grant", "Everyone:(D)"], | ||
| # Give delete permission to the owner (us) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
You're doing a lot more than you have to. Just /deny the right to synchronize on the file for users (*BU). CreateFileW() always requests SYNCHRONIZE access because it's in the API contract that File handles are waitable. OTOH, DeleteFileW() only needs DELETE access, so you can still delete the file without having to reset the security on it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's only slightly more work, and this is a better emulation of the user report. It should be more robust if something else changes in the future (either failing hard, so we notice, or not failing at all). Being too targeted here could leave us open to the test passing being a false positive based on the environment, so I'd rather just go hard at it and be sure we're testing the right thing.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.