From b16aca152797bab974f9166bb8852c3a9a2ba269 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Fri, 24 May 2019 15:54:42 +0200 Subject: [PATCH] Remove a specific flag --- certbot/compat/filesystem.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/certbot/compat/filesystem.py b/certbot/compat/filesystem.py index 1e69f7f50..0b6cf374a 100644 --- a/certbot/compat/filesystem.py +++ b/certbot/compat/filesystem.py @@ -126,11 +126,7 @@ def _generate_windows_flags(rights_desc): if rights_desc['write']: flag = flag | (ntsecuritycon.FILE_ALL_ACCESS ^ ntsecuritycon.FILE_GENERIC_READ - ^ ntsecuritycon.FILE_GENERIC_EXECUTE - # Following bit is never set for file/directory objects using the - # ntsecuritycon.FILE_* flags, but is effectively present when - # the "Full Permissions" are applied from Windows UI. - ^ 512) + ^ ntsecuritycon.FILE_GENERIC_EXECUTE) if rights_desc['execute']: flag = flag | ntsecuritycon.FILE_GENERIC_EXECUTE