Merge pull request #295 from techtonik/patch-3
acl: Fix X support in ACL permissions
This commit is contained in:
commit
f4dbcea30c
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,9 @@ def normalize_permissions(p):
|
|||
perms[1] = 'w'
|
||||
if char == 'x':
|
||||
perms[2] = 'x'
|
||||
if char == 'X':
|
||||
if perms[2] != 'x': # 'x' is more permissive
|
||||
perms[2] = 'X'
|
||||
return ''.join(perms)
|
||||
|
||||
def split_entry(entry):
|
||||
|
|
Loading…
Reference in a new issue