Date: Tue, 28 Dec 1999 10:51:49 +0200 (EET) From: netch@lucky.net (Valentin Nechayev) To: FreeBSD-gnats-submit@freebsd.org Subject: bin/15739: repquota report format fix Message-ID: <199912280851.KTY14112@unicorn.carrier.kiev.ua>
next in thread | raw e-mail | index | archive | help
>Number: 15739 >Category: bin >Synopsis: repquota report format fix for better parsing >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Dec 28 01:00:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Valentin Nechayev >Release: FreeBSD 3.4-STABLE i386 >Organization: Lucky Net Ltd. >Environment: FreeBSD 3.4-STABLE, 4.0-CURRENT >Description: repquota output has different field format depending on quota exceeding or non-exceeding for different users. Field number for numbers of inodes in use, inodes soft limit and inodes hard limit varies. (Field number is understood here as in awk, i.e. one cannot say $8 to get soft inodes limit.) >How-To-Repeat: >Fix: --- repquota.c.orig Tue Dec 28 10:42:14 1999 +++ repquota.c Tue Dec 28 10:42:47 1999 @@ -244,7 +244,7 @@ fup->fu_dqblk.dqb_bsoftlimit && fup->fu_dqblk.dqb_curblocks >= fup->fu_dqblk.dqb_bsoftlimit ? - timeprt(fup->fu_dqblk.dqb_btime) : ""); + timeprt(fup->fu_dqblk.dqb_btime) : "-"); printf(" %7lu %7lu %7lu %6s\n", fup->fu_dqblk.dqb_curinodes, fup->fu_dqblk.dqb_isoftlimit, @@ -252,7 +252,7 @@ fup->fu_dqblk.dqb_isoftlimit && fup->fu_dqblk.dqb_curinodes >= fup->fu_dqblk.dqb_isoftlimit ? - timeprt(fup->fu_dqblk.dqb_itime) : ""); + timeprt(fup->fu_dqblk.dqb_itime) : "-"); fup->fu_dqblk = zerodqblk; } return (0); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912280851.KTY14112>