Explorar o código

dummy acl implementation for unsupported platforms

the API_VERSION there was not in sync (and that was even true, as "st" was missing in acl_get()) - fixed.
Thomas Waldmann %!s(int64=10) %!d(string=hai) anos
pai
achega
767e795597
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      attic/platform.py

+ 6 - 2
attic/platform.py

@@ -9,9 +9,13 @@ elif platform == 'FreeBSD':
 elif platform == 'Darwin':
     from attic.platform_darwin import acl_get, acl_set, API_VERSION
 else:
-    API_VERSION = 1
+    # this is a dummy acl interface for platforms for which we do not have
+    # a real implementation (or which do not support acls at all).
 
-    def acl_get(path, item, numeric_owner=False):
+    API_VERSION = 2
+
+    def acl_get(path, item, st, numeric_owner=False):
         pass
+
     def acl_set(path, item, numeric_owner=False):
         pass