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

Preserve destination file ownership on unix OSes #1185

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

kyhavlov
Copy link
Contributor

@kyhavlov kyhavlov commented Feb 16, 2019

This PR changes the renderer to preserve the destination file permissions when possible (on operating systems that support Go's FileInfo.Sys() interface).

Fixes #1061.

@hashicorp-cla
Copy link

hashicorp-cla commented Feb 16, 2019

CLA assistant check
All committers have signed the CLA.

@pearkes
Copy link
Contributor

pearkes commented Feb 16, 2019

Talked about how it would be great to get tests in but unsure of how that would be possible in CI.

@pearkes pearkes added this to the v0.20.0 milestone Feb 16, 2019
@kyhavlov kyhavlov merged commit 76cdd2c into master Feb 19, 2019
@kyhavlov kyhavlov deleted the preserve-file-owner branch February 19, 2019 18:24
deblasis added a commit to deblasis/consul-template that referenced this pull request Nov 3, 2021
Related issues hashicorp#639, hashicorp#1497, hashicorp#1185 and also nomad/5020

Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
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.

3 participants