diff options
author | ahaw021 <ardhawke@gmail.com> | 2017-07-21 11:15:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 11:15:38 +0300 |
commit | 71b6e1cd519eaf1b779ed73a3b07bfb32e2a3d2e (patch) | |
tree | c680c8160af8d80e48b1c8767f0036e49c2d41bb | |
parent | 3958a5167c3c2f31ffd3c8426f875c1ae386f006 (diff) |
reverter.py - Windows Compatibility Mode - os.geteuid()ahaw021-windows
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
-rw-r--r-- | certbot/reverter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/certbot/reverter.py b/certbot/reverter.py index 34feafc7e..3b7251b92 100644 --- a/certbot/reverter.py +++ b/certbot/reverter.py @@ -65,7 +65,7 @@ class Reverter(object): self.config = config util.make_or_verify_dir( - config.backup_dir, constants.CONFIG_DIRS_MODE, os.geteuid(), + config.backup_dir, constants.CONFIG_DIRS_MODE, self.config.strict_permissions) def revert_temporary_config(self): @@ -217,7 +217,7 @@ class Reverter(object): """ util.make_or_verify_dir( - cp_dir, constants.CONFIG_DIRS_MODE, os.geteuid(), + cp_dir, constants.CONFIG_DIRS_MODE, self.config.strict_permissions) op_fd, existing_filepaths = self._read_and_append( @@ -431,7 +431,7 @@ class Reverter(object): cp_dir = self.config.in_progress_dir util.make_or_verify_dir( - cp_dir, constants.CONFIG_DIRS_MODE, os.geteuid(), + cp_dir, constants.CONFIG_DIRS_MODE, self.config.strict_permissions) return cp_dir |