Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ufs In chkdq(), check for NOCRED. Should fix port-a...



details:   https://anonhg.NetBSD.org/src/rev/889763062ac9
branches:  trunk
changeset: 486358:889763062ac9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat May 20 03:25:14 2000 +0000

description:
In chkdq(), check for NOCRED.  Should fix port-alpha/10147.

diffstat:

 sys/ufs/ufs/ufs_quota.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 59c5b33d4f9f -r 889763062ac9 sys/ufs/ufs/ufs_quota.c
--- a/sys/ufs/ufs/ufs_quota.c   Sat May 20 03:08:41 2000 +0000
+++ b/sys/ufs/ufs/ufs_quota.c   Sat May 20 03:25:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_quota.c,v 1.15 2000/03/30 12:41:14 augustss Exp $  */
+/*     $NetBSD: ufs_quota.c,v 1.16 2000/05/20 03:25:14 thorpej Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993, 1995
@@ -133,7 +133,8 @@
                }
                return (0);
        }
-       if ((flags & FORCE) == 0 && cred->cr_uid != 0) {
+       if ((flags & FORCE) == 0 &&
+           (cred != NOCRED && cred->cr_uid != 0)) {
                for (i = 0; i < MAXQUOTAS; i++) {
                        if ((dq = ip->i_dquot[i]) == NODQUOT)
                                continue;



Home | Main Index | Thread Index | Old Index