upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tools/rtti_scan.py
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-27 15:42:13 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-27 15:42:13 -0500
commit7da8f09a9e8d989790b19cc9035eb3018bdb4bcc (patch)
tree10c08aeb523b46f46115114a89dd2912cd776e53 /tools/rtti_scan.py
parentb93d2cc1638d52d5838df6d5ddbc97c1607877db (diff)
PR #798: rtti_scan: restore write mode before unlink on replace failure (RTTI-SCAN-STAGE-CLEANUP)
From https://github.com/ProjectLeonida/mandy/pull/798 (head a6ff1f4d3265), applied as a reviewed patch. Co-authored-by: trigger337 <trigger337@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'tools/rtti_scan.py')
-rw-r--r--tools/rtti_scan.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/rtti_scan.py b/tools/rtti_scan.py
index 9082b2f6d..8f3ebb7f2 100644
--- a/tools/rtti_scan.py
+++ b/tools/rtti_scan.py
@@ -500,6 +500,10 @@ def write_report(path, text):
500 except BaseException: 500 except BaseException:
501 if tmp is not None: 501 if tmp is not None:
502 try: 502 try:
503 os.chmod(tmp, 0o600)
504 except OSError:
505 pass
506 try:
503 os.remove(tmp) 507 os.remove(tmp)
504 except OSError: 508 except OSError:
505 pass 509 pass