diff options
| author | MoonEyes <ducoinbenjamin@yahoo.fr> | 2026-11-28 20:34:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-28 20:34:13 +0100 |
| commit | d2569e17d974a8acfe85617a47e499fdcbc38d51 (patch) | |
| tree | 88e1e1237520171e256dba0ed0a263144372945b /tools/rtti_scan.py | |
| parent | ec21061648af106e94411411de9a628b71f7d27f (diff) | |
| parent | a6ff1f4d3265b18c1c26bdb1bfd63d109868bba2 (diff) | |
Merge pull request #798 from trigger337/fix/rtti-scan-stage-cleanup
rtti_scan: restore write mode before unlink on replace failure (RTTI-SCAN-STAGE-CLEANUP)
Diffstat (limited to 'tools/rtti_scan.py')
| -rw-r--r-- | tools/rtti_scan.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/rtti_scan.py b/tools/rtti_scan.py index c2d2ae0b9..a108f6fba 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 |