You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing files to the cache, pip copies the permissions from the cache
directory. This is an expected behaviour to ensure that any user that has
access to the cache has also access to its content.
Copying the permissions explicitly is necessary due to the use of
adjacent_tmp_file() which by virtue of tempfile.mkstemp() (indirectly via
NamedTemporaryFile) causes all files to be created with 600
permissions.
This is not happening for the selfcheck cache, rendering it unaccessible
by users different from the one that first created the cache.
Signed-off-by: Alessandro Molina <[email protected]>
Co-authored-by: Richard Si <[email protected]>
0 commit comments