summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
80e452e)
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
def getAcl(char* dir, int follow=1):
cdef char space[MAXSIZE]
pioctl_read(dir, VIOCGETAL, space, MAXSIZE, follow)
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
def getCallerAccess(char *dir, int follow=1):
cdef vcxstat2 stat
def getCallerAccess(char *dir, int follow=1):
cdef vcxstat2 stat
self.pos = pos
self.neg = neg
@staticmethod
self.pos = pos
self.neg = neg
@staticmethod
+ def retrieve(dir,follow=1):
"""Retrieve the ACL for an AFS directory"""
"""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):
return ACL(pos, neg)
def showRights(r):