summaryrefslogtreecommitdiffstats
path: root/usr.sbin/edquota
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2005-04-01 04:31:09 +0000
committerderaadt <deraadt@openbsd.org>2005-04-01 04:31:09 +0000
commita36c18777829ab6eec61dcd4f6cd360c56db52a5 (patch)
tree57cea46a6772007501cd254da44371747a790fe7 /usr.sbin/edquota
parentshow that net.inet.etherip.allow can be set here; pr 3972 ckuethe (diff)
downloadwireguard-openbsd-a36c18777829ab6eec61dcd4f6cd360c56db52a5.tar.xz
wireguard-openbsd-a36c18777829ab6eec61dcd4f6cd360c56db52a5.zip
these commands said "blocks" when they meant "KBytes" (they even calculated
it so). pointed out by janc@cyberspace.org, pr 3956
Diffstat (limited to 'usr.sbin/edquota')
-rw-r--r--usr.sbin/edquota/edquota.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index 17f0ab7e668..0b2ee5a61e5 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -38,7 +38,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)edquota.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: edquota.c,v 1.41 2004/03/09 18:26:42 tedu Exp $";
+static char *rcsid = "$Id: edquota.c,v 1.42 2005/04/01 04:31:11 deraadt Exp $";
#endif /* not lint */
/*
@@ -420,7 +420,7 @@ writeprivs(struct quotause *quplist, int outfd, char *name, int quotatype)
(void)fprintf(fd, "Quotas for %s %s:\n", qfextension[quotatype], name);
for (qup = quplist; qup; qup = qup->next) {
(void)fprintf(fd, "%s: %s %d, limits (soft = %d, hard = %d)\n",
- qup->fsname, "blocks in use:",
+ qup->fsname, "KBytes in use:",
(int)(dbtob((u_quad_t)qup->dqblk.dqb_curblocks) / 1024),
(int)(dbtob((u_quad_t)qup->dqblk.dqb_bsoftlimit) / 1024),
(int)(dbtob((u_quad_t)qup->dqblk.dqb_bhardlimit) / 1024));
@@ -466,7 +466,7 @@ readprivs(struct quotause *quplist, int infd)
return(0);
}
cnt = sscanf(cp,
- " blocks in use: %d, limits (soft = %d, hard = %d)",
+ " KBytes in use: %d, limits (soft = %d, hard = %d)",
&dqblk.dqb_curblocks, &dqblk.dqb_bsoftlimit,
&dqblk.dqb_bhardlimit);
if (cnt != 3) {