|
@@ -8,7 +8,6 @@ cimport cpython.array
|
|
|
import array
|
|
|
|
|
|
import platform
|
|
|
-from ..helpers import safe_decode, safe_encode
|
|
|
|
|
|
API_VERSION = 3
|
|
|
|
|
@@ -300,7 +299,7 @@ def acl_get(path, item, st, numeric_owner=False):
|
|
|
continue
|
|
|
permissions = {'user': {'name': name, 'sid': sidstr}, 'permissions': (ACEs[i].grfAccessPermissions, ACEs[i].grfAccessMode, ACEs[i].grfInheritance)}
|
|
|
pyDACL.append(permissions)
|
|
|
- item['win_dacl'] = safe_encode(json.dumps(pyDACL))
|
|
|
+ item['win_dacl'] = json.dumps(pyDACL)
|
|
|
|
|
|
free(SD)
|
|
|
LocalFree(<HLOCAL>ACEs)
|
|
@@ -310,7 +309,7 @@ def acl_set(path, item, numeric_owner=False):
|
|
|
if 'win_dacl' not in item:
|
|
|
return
|
|
|
|
|
|
- pyDACL = json.loads(safe_decode(item['win_dacl']))
|
|
|
+ pyDACL = json.loads(item.win_dacl)
|
|
|
cdef _EXPLICIT_ACCESS_W* ACEs = <_EXPLICIT_ACCESS_W*>calloc(sizeof(_EXPLICIT_ACCESS_W), len(pyDACL))
|
|
|
cdef wchar_t* temp
|
|
|
cdef PSID newsid
|