diff options
-rw-r--r-- | src/buildstream/storage/_casbaseddirectory.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buildstream/storage/_casbaseddirectory.py b/src/buildstream/storage/_casbaseddirectory.py index b8b5ca09c..e33bdc3d7 100644 --- a/src/buildstream/storage/_casbaseddirectory.py +++ b/src/buildstream/storage/_casbaseddirectory.py @@ -754,6 +754,8 @@ class CasBasedDirectory(Directory): raise FileExistsError("{} already exists in {}".format(path[-1], str(subdir))) with utils._tempnamedfile(mode, encoding=encoding, dir=self.cas_cache.tmpdir) as f: + # Make sure the temporary file is readable by buildbox-casd + os.chmod(f.name, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH) yield f # Import written temporary file into CAS f.flush() |