git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
auth: eliminate pointless retries in ktc_ListTokensEx
[openafs.git]
/
src
/
auth
/
ktc.c
diff --git
a/src/auth/ktc.c
b/src/auth/ktc.c
index
34abc5e
..
0c24908
100644
(file)
--- a/
src/auth/ktc.c
+++ b/
src/auth/ktc.c
@@
-794,6
+794,9
@@
ktc_ListTokensEx(int prevIndex, int *newIndex, char **cellName) {
code = PIOCTL(0, VIOC_GETTOK2, &iob, 0);
+ if (code == -1 && errno == EDOM)
+ return KTC_NOENT; /* no more tokens to be found */
+
/* Can't use new pioctl, so must use old one */
if (code == -1 && errno == EINVAL) {
struct ktc_principal server;