Module Name: src Committed By: bouyer Date: Mon Feb 14 20:38:57 UTC 2011
Modified Files: src/usr.bin/quota [bouyer-quota2]: quota.c Log Message: With quota2 semantic, we may be overquota even if usage is 0. Print quota in default output in this case. To generate a diff of this commit: cvs rdiff -u -r1.33.2.8 -r1.33.2.9 src/usr.bin/quota/quota.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/quota/quota.c diff -u src/usr.bin/quota/quota.c:1.33.2.8 src/usr.bin/quota/quota.c:1.33.2.9 --- src/usr.bin/quota/quota.c:1.33.2.8 Mon Feb 14 20:35:24 2011 +++ src/usr.bin/quota/quota.c Mon Feb 14 20:38:56 2011 @@ -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)