Skip to content

Conversation

@samueltardieu
Copy link
Contributor

Fix #6542

@samueltardieu samueltardieu changed the title mkdir: do not change mode of directories that we have not created mkdir: do not change mode of directories that we did not create Sep 7, 2024
@samueltardieu samueltardieu changed the title mkdir: do not change mode of directories that we did not create mkdir: do not change mode of existing directories Sep 7, 2024
Copy link
Collaborator

@BenWiederhake BenWiederhake left a comment

Choose a reason for hiding this comment

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

Fixes the problem, adds a test, perfect.

It even correctly reproduces the weird GNU behavior of mkdir -p /root/./ :)

Remaining CI failure is known issue #6534.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mkdir -p fails on existing directories that the current user doesn't have permission to access

2 participants