Improve a comment

This commit is contained in:
Adrien Ferrand 2019-05-15 23:45:06 +02:00
parent 9a32631191
commit 9c714b3453

View file

@ -119,7 +119,10 @@ def _generate_windows_flags(rights_desc):
flag = flag | (ntsecuritycon.FILE_ALL_ACCESS
^ ntsecuritycon.FILE_GENERIC_READ
^ ntsecuritycon.FILE_GENERIC_EXECUTE
^ 512) # This bit is never set with file/directory objects
# 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)
if rights_desc['execute']:
flag = flag | ntsecuritycon.FILE_GENERIC_EXECUTE