Add the nusers field back to PTEntry; it does vary, especially when
authorEvan Broder <broder@mit.edu>
Mon, 16 Mar 2009 01:29:52 +0000 (21:29 -0400)
committerEvan Broder <broder@mit.edu>
Mon, 16 Mar 2009 01:42:00 +0000 (21:42 -0400)
looking at system:authuser@other-cells PTS groups.

This reverts commit cfd9c00a7c55a3e5235e4311c70eafcfb5f5c34d.

Signed-off-by: Evan Broder <broder@mit.edu>

afs/_pts.pyx

index a48c64e..640fcc2 100644 (file)
@@ -26,6 +26,7 @@ cdef import from "afs/ptuser.h":
         afs_int32 owner
         afs_int32 creator
         afs_int32 ngroups
+        afs_int32 nusers
         afs_int32 count
 
     int ubik_PR_NameToID(ubik_client *, afs_int32, namelist *, idlist *)
@@ -56,6 +57,7 @@ cdef class PTEntry:
     cdef public afs_int32 owner
     cdef public afs_int32 creator
     cdef public afs_int32 ngroups
+    cdef public afs_int32 nusers
     cdef public afs_int32 count
 
 cdef int _ptentry_from_c(PTEntry p_entry, prcheckentry c_entry) except -1:
@@ -68,6 +70,7 @@ cdef int _ptentry_from_c(PTEntry p_entry, prcheckentry c_entry) except -1:
     p_entry.owner = c_entry.owner
     p_entry.creator = c_entry.creator
     p_entry.ngroups = c_entry.ngroups
+    p_entry.nusers = c_entry.nusers
     p_entry.count = c_entry.count
     return 0
 
@@ -81,6 +84,7 @@ cdef int _ptentry_to_c(prcheckentry * c_entry, PTEntry p_entry) except -1:
     c_entry.owner = p_entry.owner
     c_entry.creator = p_entry.creator
     c_entry.ngroups = p_entry.ngroups
+    c_entry.nusers = p_entry.nusers
     c_entry.count = p_entry.count
     return 0