Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Dec 23, 2024
1 parent 79e6c97 commit a3e8276
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/globaleaks_eph_fs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def create(self, path, mode):
with self.mutex:
file = EphemeralFile(self.storage_directory)
file.open('w')
os.chmod(file.filepath, 0o660)
self.files[path] = file
return file.fd

Expand Down Expand Up @@ -306,8 +307,6 @@ def truncate(self, path, length, fh=None):
truncated_file = EphemeralFile(self.storage_directory)
truncated_file.open('w')

truncated_file.open('w')

bytes_written = 0
while bytes_written < length:
remaining = length - bytes_written
Expand Down

0 comments on commit a3e8276

Please sign in to comment.