From: Edward Z. Yang Date: Fri, 26 Jun 2009 15:28:45 +0000 (-0400) Subject: Incorporate broder's comments. X-Git-Tag: 0.1.0~23^2~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/commitdiff_plain/5f5cebd0db4f7c3723d5cf916f5d9d78eab87962?ds=sidebyside Incorporate broder's comments. Signed-off-by: Edward Z. Yang --- 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):