diff options
| author | cgd <cgd@NetBSD.org> | 1995-05-10 18:00:45 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1995-05-10 18:00:45 +0000 |
| commit | 64d4944e2fcb32e181c1e254ef8cd6bb830c2f8e (patch) | |
| tree | 8af555108d037763c11b90c9dcadc732101a4206 | |
| parent | 078a98c86476e73afc4af38f57a3de657940f7bc (diff) | |
from Mike Karels:
allow Q_SYNC regardless of "target" uid, we allow it with -1;
fix bug that caused all ops to refer to user quotas, not group.
[finally had a chance to check this!]
| -rw-r--r-- | sys/ufs/ufs/ufs_vfsops.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/ufs/ufs/ufs_vfsops.c b/sys/ufs/ufs/ufs_vfsops.c index f06d946f9d6..1ba8596ceb7 100644 --- a/sys/ufs/ufs/ufs_vfsops.c +++ b/sys/ufs/ufs/ufs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: ufs_vfsops.c,v 1.2 1994/06/29 06:47:33 cgd Exp $ */ +/* $NetBSD: ufs_vfsops.c,v 1.3 1995/05/10 18:00:45 cgd Exp $ */ /* * Copyright (c) 1991, 1993, 1994 @@ -108,8 +108,9 @@ ufs_quotactl(mp, cmds, uid, arg, p) cmd = cmds >> SUBCMDSHIFT; switch (cmd) { - case Q_GETQUOTA: case Q_SYNC: + break; + case Q_GETQUOTA: if (uid == p->p_cred->p_ruid) break; /* fall through */ @@ -118,7 +119,7 @@ ufs_quotactl(mp, cmds, uid, arg, p) return (error); } - type = cmd & SUBCMDMASK; + type = cmds & SUBCMDMASK; if ((u_int)type >= MAXQUOTAS) return (EINVAL); |
