This commit is contained in:
Adrien Ferrand 2019-05-24 18:12:00 +02:00
parent 998ba1ca9f
commit 901536d545
2 changed files with 4 additions and 3 deletions

View file

@ -107,10 +107,10 @@ def _generate_windows_flags(rights_desc):
#
# For the rights read and execute, we have a pretty bijective relation between
# POSIX flags and their generic counterparts on Windows, so we use them directly
# (respectively ntsecuritycon.FILE_GENERIC_READ) and (respectively ntsecuritycon.FILE_GENERIC_EXECUTE).
# (respectively ntsecuritycon.FILE_GENERIC_READ and ntsecuritycon.FILE_GENERIC_EXECUTE).
#
# But ntsecuritycon.FILE_GENERIC_WRITE does not correspond to what one could expect from a write
# access on Linux: for Windows, FILE_GENERIC_WRITE does not include delete, move or
# But ntsecuritycon.FILE_GENERIC_WRITE does not correspond to what one could expect from a
# write access on Linux: for Windows, FILE_GENERIC_WRITE does not include delete, move or
# rename. This is something that requires ntsecuritycon.FILE_ALL_ACCESS.
# So to reproduce the write right as POSIX, we will apply ntsecuritycon.FILE_ALL_ACCESS
# substracted of the rights corresponding to POSIX read and POSIX execute.

View file

@ -1,3 +1,4 @@
"""Unit test for os module."""
import unittest
from certbot.compat import os