mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 00:00:44 +02:00
Fixes #7993 This PR uses `os.umask()` during `certbot.compat.filesystem.makedirs()` call to ensure that all directories, and not only the leaf one, have the provided `mode` when created. This ensures a safe and consistent behavior independently from the Python version, since the behavior of `os.makedirs` changed on that matter with Python 3.7. * Implement logic to apply the same permission on all dirs created by makedirs * Add a test * Add comment * Update certbot/certbot/compat/filesystem.py Co-authored-by: Brad Warren <bmw@users.noreply.github.com>