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

Add dir_mode to file.copy state #62650

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

lkubb
Copy link
Contributor

@lkubb lkubb commented Sep 11, 2022

What does this PR do?

Adds a dir_mode argument to file.copy state. Also defaults this dir_mode to mode + execute bits set instead of the file mode, which seems like a poor default.

What issues does this PR fix or reference?

Fixes: #62426

Previous Behavior

Created parent directories had the same permissions as the file.

New Behavior

Created parent directories by default have the execute bit set. The directory mode is configurable.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@lkubb lkubb requested a review from a team as a code owner September 11, 2022 14:19
@lkubb lkubb requested review from garethgreenaway and removed request for a team September 11, 2022 14:19
@garethgreenaway garethgreenaway merged commit 6558946 into saltstack:master Sep 21, 2022
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.

[BUG] file.copy state with makedirs uses file permissions on created directories
2 participants