Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357807
b: refs/heads/master
c: e572fc7
h: refs/heads/master
i:
  357805: ba03232
  357803: 17e1864
  357799: dcf27a0
  357791: ffd30bc
v: v3
  • Loading branch information
Eric W. Biederman committed Feb 13, 2013
1 parent 99169dc commit e851bce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cdba321e291f0fbf5abda4d88340292b858e3d4d
refs/heads/master: e572fc739822ad779493b8a72bd27f2101fc3373
5 changes: 2 additions & 3 deletions trunk/net/sunrpc/auth_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ unx_match(struct auth_cred *acred, struct rpc_cred *rcred, int flags)
for (i = 0; i < groups ; i++)
if (!gid_eq(cred->uc_gids[i], GROUP_AT(acred->group_info, i)))
return 0;
if (groups < NFS_NGROUPS &&
cred->uc_gids[groups] != INVALID_GID)
if (groups < NFS_NGROUPS && gid_valid(cred->uc_gids[groups]))
return 0;
return 1;
}
Expand Down Expand Up @@ -161,7 +160,7 @@ unx_marshal(struct rpc_task *task, __be32 *p)
*p++ = htonl((u32) cred->uc_uid);
*p++ = htonl((u32) cred->uc_gid);
hold = p++;
for (i = 0; i < 16 && cred->uc_gids[i] != INVALID_GID; i++)
for (i = 0; i < 16 && gid_valid(cred->uc_gids[i]); i++)
*p++ = htonl((u32) cred->uc_gids[i]);
*hold = htonl(p - hold - 1); /* gid array length */
*base = htonl((p - base - 1) << 2); /* cred length */
Expand Down

0 comments on commit e851bce

Please sign in to comment.