Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdir: do not change mode of existing directories #6682

Merged
merged 1 commit into from
Sep 7, 2024

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.

@BenWiederhake BenWiederhake merged commit d627952 into uutils:main Sep 7, 2024
68 of 69 checks passed
@samueltardieu samueltardieu deleted the issue-6542 branch September 7, 2024 19:43
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