Skip to content

Commit

Permalink
Chmod should use octal
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Feb 7, 2024
1 parent 55b707d commit be787d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librarian_server/stores/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ def set_for_file(file: Path):

if self.readonly_after_commit:
if file.is_dir():
file.chmod(555)
file.chmod(0o555)
else:
file.chmod(444)
file.chmod(0o444)

# Set for the top-level file.
set_for_file(resolved_path)
Expand Down

0 comments on commit be787d3

Please sign in to comment.