Skip to content

Conversation

@DanielRuthardt
Copy link

πŸ“‘ What

Fix significant issues highlighted thanks to testing.

❓ Why

⚑ How to Review

βœ… Testing

  • I have tested my work
  • I need you to test it too

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes critical bugs in file permission checking functions discovered through testing. The changes correct the behavior of world permission checks to only examine the specified path rather than recursively searching subdirectories, and fix inverted logic in the accessibility check.

  • Added -maxdepth 0 flag to find commands in permission checking functions to prevent unintended recursive directory traversal
  • Fixed inverted conditional logic in is_world_accessible function
  • Added required include directives for helper functions

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
libs/file/is_world_writable Added -maxdepth 0 to prevent recursive directory search
libs/file/is_world_readable Added -maxdepth 0 to prevent recursive directory search
libs/file/is_world_executable Added -maxdepth 0 to prevent recursive directory search
libs/file/is_world_accessible Fixed inverted logic and added include directives for dependencies

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DanielRuthardt DanielRuthardt merged commit 2bad3f3 into main Nov 14, 2025
8 checks passed
@DanielRuthardt DanielRuthardt deleted the fix/significant-issues-highlighted-by-testing branch November 14, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants