projects
/
invirt/packages/python-afs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't ignore lists overflowing the display limit.
[invirt/packages/python-afs.git]
/
afs
/
_pts.pyx
diff --git
a/afs/_pts.pyx
b/afs/_pts.pyx
index
cce9256
..
6b6de79
100644
(file)
--- a/
afs/_pts.pyx
+++ b/
afs/_pts.pyx
@@
-32,6
+32,7
@@
cdef import from "afs/ptuser.h":
cdef import from "afs/pterror.h":
enum:
PRNOENT
cdef import from "afs/pterror.h":
enum:
PRNOENT
+ PRTOOMANY
void initialize_PT_error_table()
void initialize_PT_error_table()
@@
-264,12
+265,15
@@
cdef class PTS:
alist.prlist_val = NULL
code = ubik_PR_ListElements(self.client, 0, gid, &alist, &over)
alist.prlist_val = NULL
code = ubik_PR_ListElements(self.client, 0, gid, &alist, &over)
- if code != 0:
- raise Exception("Failed to get group membership: %s" % afs_error_message(code))
- for i in range(alist.prlist_len):
- members.append(alist.prlist_val[i])
if alist.prlist_val is not NULL:
if alist.prlist_val is not NULL:
+ for i in range(alist.prlist_len):
+ members.append(alist.prlist_val[i])
free(alist.prlist_val)
free(alist.prlist_val)
+ if over:
+ code = PRTOOMANY
+ if code != 0:
+ raise Exception("Failed to get group membership: %s" % afs_error_message(code))
+
return members
return members