summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2019-11-08 12:24:43 +0000
committerTristan Maat <tristan.maat@codethink.co.uk>2019-11-12 11:19:01 +0000
commit397ddcfe7a728aec06307ee24f7c8be05130f490 (patch)
treeaeaa7fc31a51c127805d8447935c3b17fab9531b
parentcf42e87fa3980bedd49b60a0f64b422e16f861cc (diff)
downloadbuildstream-397ddcfe7a728aec06307ee24f7c8be05130f490.tar.gz
plugins/sources/tar.py: Ensure read permissions for groups as well
-rw-r--r--src/buildstream/plugins/sources/tar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildstream/plugins/sources/tar.py b/src/buildstream/plugins/sources/tar.py
index 702b7ba56..ac80177aa 100644
--- a/src/buildstream/plugins/sources/tar.py
+++ b/src/buildstream/plugins/sources/tar.py
@@ -69,14 +69,14 @@ from ._downloadablefilesource import DownloadableFileSource
class ReadableTarInfo(tarfile.TarInfo):
"""
The goal is to override `TarFile`'s `extractall` semantics by ensuring that on extraction, the
- files are readable by the owner of the file. This is done by overriding the accessor for the
+ files are readable by the owners of the file. This is done by overriding the accessor for the
`mode` attribute in `TarInfo`, the class that encapsulates the internal meta-data of the tarball,
so that the owner-read bit is always set.
"""
@property
def mode(self):
- # ensure file is readable by owner
- return self.__permission | 0o400
+ # ensure file is readable by owner and group
+ return self.__permission | 0o440
@mode.setter
def mode(self, permission):