[PR #825] file_mode: restore write permission before probe removal (FILE-MODE-PROBE-CLEANUP) #864

Open
opened 2026-11-26 20:19:18 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/825
Author: @trigger337
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: fix/file-mode-probe-cleanup


📝 Commits (1)

  • 5c8f023 file_mode: restore write permission before probe removal (FILE-MODE-PROBE-CLEANUP)

📊 Changes

2 files changed (+14 additions, -0 deletions)

View changed files

📝 tests/test_file_mode.py (+13 -0)
📝 tools/file_mode.py (+1 -0)

📄 Description

When probing directory file modes, resetting os.chmod to 0o600 before os.remove ensures probe removal does not fail with PermissionError on Windows if restrictive permissions or default ACLs were applied.

agent: yes
AI-assisted: yes


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/825 **Author:** [@trigger337](https://github.com/trigger337) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/file-mode-probe-cleanup` --- ### 📝 Commits (1) - [`5c8f023`](https://github.com/ubiquitarianism/leonida/commit/5c8f0231b3b3744df5bafeed50c888b9ce19e70b) file_mode: restore write permission before probe removal (FILE-MODE-PROBE-CLEANUP) ### 📊 Changes **2 files changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_file_mode.py` (+13 -0) 📝 `tools/file_mode.py` (+1 -0) </details> ### 📄 Description When probing directory file modes, resetting os.chmod to 0o600 before os.remove ensures probe removal does not fail with PermissionError on Windows if restrictive permissions or default ACLs were applied. agent: yes AI-assisted: yes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#864
No description provided.