The flags that token_extractRxkad returns are flags that are passed to
ktc_SetToken, not the flags that are passed directly to the PSetTokens
pioctl. So, we should be setting AFS_SETTOK_SETPAG, which is
interpreted by ktc_SetToken.
Change-Id: Id63ba4d5874e43c8d1f02817bf33975516a974be
Reviewed-on: http://gerrit.openafs.org/4480
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
uToken.ktc_tokenUnion_u.at_kad.rk_ticket.rk_ticket_val,
rxkadToken->ticketLen);
- if (flags)
- *flags = uToken.ktc_tokenUnion_u.at_kad.rk_primary_flag & ~0x8000;
+ if (flags) {
+ *flags = 0;
+ if ((token->flags & AFSTOKEN_EX_SETPAG)) {
+ *flags |= AFS_SETTOK_SETPAG;
+ }
+ }
if (aclient) {
strncpy(aclient->cell, token->cell, MAXKTCREALMLEN-1);