Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/bouyer-quota2]: src/sys/ufs/ufs On command with multiple data, make sure...
details: https://anonhg.NetBSD.org/src/rev/4666ece5dc8b
branches: bouyer-quota2
changeset: 761101:4666ece5dc8b
user: bouyer <bouyer%NetBSD.org@localhost>
date: Mon Jan 31 21:09:53 2011 +0000
description:
On command with multiple data, make sure to reset 'defaultq' to 0.
diffstat:
sys/ufs/ufs/ufs_quota.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 248d90a8a86b -r 4666ece5dc8b sys/ufs/ufs/ufs_quota.c
--- a/sys/ufs/ufs/ufs_quota.c Mon Jan 31 15:26:31 2011 +0000
+++ b/sys/ufs/ufs/ufs_quota.c Mon Jan 31 21:09:53 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_quota.c,v 1.68.4.6 2011/01/31 15:24:10 bouyer Exp $ */
+/* $NetBSD: ufs_quota.c,v 1.68.4.7 2011/01/31 21:09:53 bouyer Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993, 1995
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.68.4.6 2011/01/31 15:24:10 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.68.4.7 2011/01/31 21:09:53 bouyer Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@@ -266,6 +266,8 @@
continue;
id = 0;
defaultq = 1;
+ } else {
+ defaultq = 0;
}
error = quota_get_auth(mp, l, id);
if (error == EPERM)
@@ -333,6 +335,8 @@
continue;
id = 0;
defaultq = 1;
+ } else {
+ defaultq = 0;
}
error = kauth_authorize_system(l->l_cred, KAUTH_SYSTEM_FS_QUOTA,
KAUTH_REQ_SYSTEM_FS_QUOTA_MANAGE, mp, KAUTH_ARG(id), NULL);
Home |
Main Index |
Thread Index |
Old Index