Skip to content

[3.15] gh-127172: Honor umask and default ACL when installing venv activation scripts (GH-154850) - #161856

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-1086205-3.15
Open

miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-1086205-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

venv wrote the activation scripts with a fixed mode copied from the packaged
templates, so they ignored the process umask and any default ACL, unlike every
other file venv creates. Copy only the data and let the new files inherit the
umask and ACL.
(cherry picked from commit 1086205)

Co-authored-by: tonghuaroot (童话) tonghuaroot@gmail.com

…ivation scripts (pythonGH-154850)

venv wrote the activation scripts with a fixed mode copied from the packaged
templates, so they ignored the process umask and any default ACL, unlike every
other file venv creates. Copy only the data and let the new files inherit the
umask and ACL.
(cherry picked from commit 1086205)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants