]> Pileus Git - ~andy/linux/blobdiff - net/sunrpc/auth_unix.c
Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
[~andy/linux] / net / sunrpc / auth_unix.c
index 4cb70dc6e7ad26e3008ab9be4f617af79e3cc0d1..e50502d8ceb777a6c6795e22673753c4eea6e538 100644 (file)
@@ -129,6 +129,9 @@ unx_match(struct auth_cred *acred, struct rpc_cred *rcred, int flags)
        for (i = 0; i < groups ; i++)
                if (cred->uc_gids[i] != GROUP_AT(acred->group_info, i))
                        return 0;
+       if (groups < NFS_NGROUPS &&
+           cred->uc_gids[groups] != NOGROUP)
+               return 0;
        return 1;
 }