Source-Changes-HG archive

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

[src/bouyer-quota2]: src/usr.bin/quota With quota2 semantic, we may be overqu...



details:   https://anonhg.NetBSD.org/src/rev/d559c7adeada
branches:  bouyer-quota2
changeset: 761176:d559c7adeada
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Feb 14 20:38:56 2011 +0000

description:
With quota2 semantic, we may be overquota even if usage is 0.
Print quota in default output in this case.

diffstat:

 usr.bin/quota/quota.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f93b30bbbd86 -r d559c7adeada usr.bin/quota/quota.c
--- a/usr.bin/quota/quota.c     Mon Feb 14 20:35:24 2011 +0000
+++ b/usr.bin/quota/quota.c     Mon Feb 14 20:38:56 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: quota.c,v 1.33.2.8 2011/02/14 20:35:24 bouyer Exp $    */
+/*     $NetBSD: quota.c,v 1.33.2.9 2011/02/14 20:38:56 bouyer Exp $    */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)quota.c    8.4 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: quota.c,v 1.33.2.8 2011/02/14 20:35:24 bouyer Exp $");
+__RCSID("$NetBSD: quota.c,v 1.33.2.9 2011/02/14 20:38:56 bouyer Exp $");
 #endif
 #endif /* not lint */
 
@@ -393,7 +393,7 @@
                                printf("\t%s %s\n", msgb, qup->fsname);
                        continue;
                }
-               if (vflag || dflag ||
+               if (vflag || dflag || msgi || msgb ||
                    qup->q2e.q2e_val[QL_BLOCK].q2v_cur ||
                    qup->q2e.q2e_val[QL_FILE].q2v_cur) {
                        if (lines++ == 0)



Home | Main Index | Thread Index | Old Index