about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/interpreters/python/cpython/3.13/virtualenv-permissions.patch
blob: 8099eefc88d0b78f97ac2c9fdee70220592186e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
index 4856594755..6769ab8026 100644
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -522,6 +522,7 @@ def skip_file(f):
                     with open(dstfile, 'wb') as f:
                         f.write(new_data)
                     shutil.copymode(srcfile, dstfile)
+                os.chmod(dstfile, 0o644)
 
     def upgrade_dependencies(self, context):
         logger.debug(