From 5f5cebd0db4f7c3723d5cf916f5d9d78eab87962 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Fri, 26 Jun 2009 11:28:45 -0400 Subject: [PATCH] Incorporate broder's comments. Signed-off-by: Edward Z. Yang --- afs/_acl.pyx | 3 +-- afs/acl.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/afs/_acl.pyx b/afs/_acl.pyx index 5f0360b..06736f9 100644 --- a/afs/_acl.pyx +++ b/afs/_acl.pyx @@ -37,8 +37,7 @@ DEF MAXSIZE = 2048 def getAcl(char* dir, int follow=1): cdef char space[MAXSIZE] pioctl_read(dir, VIOCGETAL, space, MAXSIZE, follow) - ret = space # Python managed string - return ret + return space def getCallerAccess(char *dir, int follow=1): cdef vcxstat2 stat diff --git a/afs/acl.py b/afs/acl.py index d9a6df4..a245aa2 100644 --- a/afs/acl.py +++ b/afs/acl.py @@ -48,9 +48,9 @@ class ACL(object): self.pos = pos self.neg = neg @staticmethod - def retrieve(dir): + def retrieve(dir,follow=1): """Retrieve the ACL for an AFS directory""" - pos, neg = _parseAcl(_acl.getAcl(dir)) + pos, neg = _parseAcl(_acl.getAcl(dir, follow)) return ACL(pos, neg) def showRights(r): -- 1.7.9.5