From 99480225ee4c9ba6a4f2179bcc4447db1c8a570b Mon Sep 17 00:00:00 2001 From: karlicoss Date: Tue, 5 Dec 2023 01:15:50 +0000 Subject: [PATCH] org_view: use a-w during chmod apparently, this ignores umask. Otherwise this could fail with chmod: new permissions are r--rw-r--, not r--r--r-- --- src/orger/org_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/orger/org_view.py b/src/orger/org_view.py index 3b4ea98..95159a9 100644 --- a/src/orger/org_view.py +++ b/src/orger/org_view.py @@ -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: