Skip to content
New issue

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

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

Already on GitHub? # to your account

Add option for explicit chmod with atomic file write. #111

Merged
merged 2 commits into from
Apr 19, 2022

Conversation

rwcarlsen
Copy link
Contributor

@rwcarlsen rwcarlsen commented Mar 10, 2022

And use this explicit chmod flag for file writes coming from the files api.

Fixes #80

Copy link
Contributor

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

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

Thanks! Just a couple of minor things: one bug-fix (missing err :=) and request for a files-API specific test.

internal/osutil/io.go Outdated Show resolved Hide resolved
internal/osutil/io.go Show resolved Hide resolved
internal/osutil/io_test.go Show resolved Hide resolved
internal/osutil/io_test.go Outdated Show resolved Hide resolved
internal/osutil/io_test.go Outdated Show resolved Hide resolved
@rwcarlsen rwcarlsen requested a review from benhoyt March 16, 2022 20:32
@rwcarlsen
Copy link
Contributor Author

This should be ready for another look.

Copy link
Contributor

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@rwcarlsen
Copy link
Contributor Author

Is this waiting on anything in particular?

@benhoyt
Copy link
Contributor

benhoyt commented Apr 19, 2022

A Gustavo review. Though this is really a minor bug fix, not an API change, so I'd say we can probably push it through.

@benhoyt benhoyt merged commit a2161d4 into canonical:master Apr 19, 2022
@benhoyt
Copy link
Contributor

benhoyt commented Apr 19, 2022

Merged, thanks @rwcarlsen!

jujubot added a commit to juju/juju that referenced this pull request Jun 21, 2022
#14180

Non-documentation changes:

* Stop all services when SIGINT/TERM/QUIT received ([#114](canonical/pebble#114))
* Make files write API (push) call chmod explicitly ([#111](canonical/pebble#111))
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Directories created via pebble with requested permissions 0777 get created with 0775 instead
2 participants