Skip to content

Commit

Permalink
UPD permission
Browse files Browse the repository at this point in the history
  • Loading branch information
eboileau committed Jul 25, 2024
1 parent 758fc67 commit 41f688d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/scimodom/services/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@


def write_opener(path, flags):
return os.open(path, flags, DEFAULT_MODE)
old_umask = umask(0o07)
try:
return os.open(path, flags, DEFAULT_MODE)
finally:
umask(old_umask)


class FileTooLarge(Exception):
Expand Down

0 comments on commit 41f688d

Please sign in to comment.