Bug 23908

Summary: repquota format fix
Product: Base System Reporter: Valentin Nechayev <netch>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Valentin Nechayev 2000-12-28 15:40:01 UTC
repquota (/usr/sbin/repquota) output format is hard to parse in sh/awk/perl/...
programs due to field number unstableness. If user overflowed soft limit,
"grace" field is non-empty, otherwise empty; "files used" field is 7th or
6th accordingly. Variable number of spaces between fields makes problem hardier.
Of course, script can parse 2nd field with its "+-", "-+", etc., but it is
ugly imho. Change to print "-" in grace field makes output more strong and
beauty.

How-To-Repeat: 
Run repquota on file system with some users with overflowing of soft limit,
and some without it.
Comment 1 Valentin Nechayev 2000-12-28 17:16:16 UTC
Oh, this is exact duplicate of bin/15739 of mine, sent exactly year ago,
after previous setup of our mail-and-little-webs host ;;((

Well, and what about applying of this fix?

> Thank you very much for your problem report.
> It has the internal identification `bin/23908'.
> The individual assigned to look at your
> report is: freebsd-bugs. 
> 
> You can access the state of your problem report at any time
> via this link:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=23908
> 
> >Category:       bin
> >Responsible:    freebsd-bugs
> >Synopsis:       repquota format fix
> >Arrival-Date:   Thu Dec 28 07:40:01 PST 2000


/netch
Comment 2 dd freebsd_committer freebsd_triage 2001-06-19 01:47:26 UTC
State Changed
From-To: open->closed

Duplicate of PR 15739.