This is an automated email from the ASF dual-hosted git repository. root pushed a commit to branch tlater/casd-socket-permissions in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 0a8126cdc7e234d5dd82fb806cb0364188effb31 Author: Tristan Maat <[email protected]> AuthorDate: Tue Nov 12 11:04:25 2019 +0000 tar.py: Make directories with incorrect permissions traversable --- src/buildstream/plugins/sources/tar.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/buildstream/plugins/sources/tar.py b/src/buildstream/plugins/sources/tar.py index ac80177..a0682e0 100644 --- a/src/buildstream/plugins/sources/tar.py +++ b/src/buildstream/plugins/sources/tar.py @@ -75,8 +75,12 @@ class ReadableTarInfo(tarfile.TarInfo): """ @property def mode(self): - # ensure file is readable by owner and group - return self.__permission | 0o440 + # ensure file is readable by owner and group, and executable + # (=traversable) if it's a directory. + if self.isdir(): + return self.__permission | 0o550 + else: + return self.__permission | 0o440 @mode.setter def mode(self, permission):
