summaryrefslogtreecommitdiff
path: root/buildstream/_fuse/hardlinks.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_fuse/hardlinks.py')
-rw-r--r--buildstream/_fuse/hardlinks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_fuse/hardlinks.py b/buildstream/_fuse/hardlinks.py
index 4da51bb22..1386f14cf 100644
--- a/buildstream/_fuse/hardlinks.py
+++ b/buildstream/_fuse/hardlinks.py
@@ -185,12 +185,12 @@ class SafeHardlinkOps(Operations):
return os.open(full_path, flags)
- def create(self, path, mode, fi=None):
+ def create(self, path, mode, flags):
full_path = self._full_path(path)
# If it already exists, ensure it's a copy first
self._ensure_copy(full_path)
- return os.open(full_path, os.O_WRONLY | os.O_CREAT, mode)
+ return os.open(full_path, flags, mode)
def read(self, path, length, offset, fh):
os.lseek(fh, offset, os.SEEK_SET)