Print "-" instead of "" in the grace field if there is no grace

period; this keeps the number of whitespace-separated fields constant.

PR:		15739, 23908
Submitted by:	Valentin Nechayev <netch@netch.kiev.ua>
This commit is contained in:
Dima Dorfman 2001-06-19 00:47:24 +00:00
parent 1ab562901c
commit 886cc6daf6

View file

@ -255,7 +255,7 @@ repquota(fs, type, qfpathname)
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,
@ -263,7 +263,7 @@ repquota(fs, type, qfpathname)
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);