diff options
author | brooks <brooks@FreeBSD.org> | 2009-09-17 12:35:13 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2009-09-17 12:35:13 +0000 |
commit | e19a3fa312ed3b6d214a07519144fa00cb880ddf (patch) | |
tree | 7fd47a914fac89d28a82628cb0b225976e85fd87 /sys/ufs | |
parent | d2e2c07ef5f03074133103572b754c1acd0cdc65 (diff) | |
download | FreeBSD-src-e19a3fa312ed3b6d214a07519144fa00cb880ddf.zip FreeBSD-src-e19a3fa312ed3b6d214a07519144fa00cb880ddf.tar.gz |
Allocate space for the group array in a static credential used in
the quota code. One case was correctly handled in r194498, but
this one was missed.
PR: kern/138657
Tested by: PR submitter
MFC after: 3 days
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 54902ad..08b77ae 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -1449,6 +1449,7 @@ ufs_mkdir(ap) { #ifdef QUOTA struct ucred ucred, *ucp; + gid_t ucred_group; ucp = cnp->cn_cred; #endif /* @@ -1476,6 +1477,7 @@ ufs_mkdir(ap) refcount_init(&ucred.cr_ref, 1); ucred.cr_uid = ip->i_uid; ucred.cr_ngroups = 1; + ucred.cr_groups = &ucred_group; ucred.cr_groups[0] = dp->i_gid; ucp = &ucred; } |