Browse Source

Apply correct fix instead of cd176020

Marian Beermann 9 years ago
parent
commit
c221f30703
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/borg/platform/windows.pyx

+ 3 - 3
src/borg/platform/windows.pyx

@@ -300,17 +300,17 @@ 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'] = safe_encode(json.dumps(pyDACL))
 
     free(SD)
     LocalFree(<HLOCAL>ACEs)
 
 
 def acl_set(path, item, numeric_owner=False):
-    if b'win_dacl' not in item:
+    if 'win_dacl' not in item:
         return
 
-    pyDACL = json.loads(safe_decode(item.win_dacl))
+    pyDACL = json.loads(safe_decode(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