diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2009-09-24 21:32:56 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2009-09-24 21:32:56 +0000 |
| commit | 7bd26ba4cce14f23cdf1a5932ca5388eb334c3b9 (patch) | |
| tree | 81249ca3e9db3cded6591a0246f13e4bc1e34192 | |
| parent | 0c6c8b3e8f6654d41fb5f7206ab3590ccf5a8069 (diff) | |
Notes
| -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 54902ad6297a..08b77ae07290 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; } |
