mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 17:54:25 +02:00
This PR implements the filesystem.copy_ownership_and_apply_mode method from #6497. This method is used in two places in Certbot, replacing os.chown, to copy the owner and group owner from a file to another one, and apply to the latter the given POSIX mode. * Implement copy_ownership_and_apply_mode * Update certbot/compat/os.py Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Remove default values * Rewrite a comment. * Relaunch CI * Pass as keyword arguments * Update certbot/compat/filesystem.py Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Update certbot/compat/filesystem.py Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Update certbot/compat/filesystem.py Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Make the private key permissions transfer platform specific * Update certbot/compat/filesystem.py Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Rename variable * Fix comment0 * Add unit test for copy_ownership_and_apply_mode * Adapt coverage * Execute unconditionally chmod with copy_ownership_and_apply_mode. Improve doc.
19 lines
482 B
YAML
19 lines
482 B
YAML
coverage:
|
|
status:
|
|
project:
|
|
default: off
|
|
linux:
|
|
flags: linux
|
|
# Fixed target instead of auto set by #7173, can
|
|
# be removed when flags in Codecov are added back.
|
|
target: 97.6
|
|
threshold: 0.1
|
|
base: auto
|
|
windows:
|
|
flags: windows
|
|
# Fixed target instead of auto set by #7173, can
|
|
# be removed when flags in Codecov are added back.
|
|
target: 97.0
|
|
threshold: 0.1
|
|
base: auto
|