Skip to content

Commit

Permalink
org_view: use a-w during chmod
Browse files Browse the repository at this point in the history
apparently, this ignores umask. Otherwise this could fail with

    chmod: new permissions are r--rw-r--, not r--r--r--
  • Loading branch information
karlicoss committed Dec 5, 2023
1 parent cbd50d3 commit 9948022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orger/org_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def _run(self, to: Path, stdout: bool) -> None:
to.touch()
check_call(['chmod', '+w', to])
to.write_text(rtree)
check_call(['chmod', '-w', to])
check_call(['chmod', 'a-w', to])


def make_tree(self) -> OrgNode:
Expand Down

0 comments on commit 9948022

Please sign in to comment.