From c1d0147fc048404bb767cb505486bf0367915ca9 Mon Sep 17 00:00:00 2001 From: ahaw021 Date: Fri, 21 Jul 2017 16:12:09 +0800 Subject: [PATCH] cert_manager.py - Windows Compatibility Mode - os.geteuid() Removed the need for UID in methods. They are no longer passed a specific UID rather use the global UID in util As all functions in other classes (e.g. Accounts, crypto_util.py) etc call os.geteuid() this should work --- certbot/cert_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/certbot/cert_manager.py b/certbot/cert_manager.py index 207e4d072..f3595b413 100644 --- a/certbot/cert_manager.py +++ b/certbot/cert_manager.py @@ -101,7 +101,7 @@ def lineage_for_certname(cli_config, certname): """Find a lineage object with name certname.""" configs_dir = cli_config.renewal_configs_dir # Verify the directory is there - util.make_or_verify_dir(configs_dir, mode=0o755, uid=os.geteuid()) + util.make_or_verify_dir(configs_dir, mode=0o755) try: renewal_file = storage.renewal_file_for_certname(cli_config, certname) except errors.CertStorageError: @@ -240,7 +240,7 @@ def _search_lineages(cli_config, func, initial_rv): """ configs_dir = cli_config.renewal_configs_dir # Verify the directory is there - util.make_or_verify_dir(configs_dir, mode=0o755, uid=os.geteuid()) + util.make_or_verify_dir(configs_dir, mode=0o755) rv = initial_rv for renewal_file in storage.renewal_conf_files(cli_config):