From 886cc6daf608cc2196bb032fec9d2475e8f7c07d Mon Sep 17 00:00:00 2001 From: Dima Dorfman Date: Tue, 19 Jun 2001 00:47:24 +0000 Subject: [PATCH] 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 --- usr.sbin/repquota/repquota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/repquota/repquota.c b/usr.sbin/repquota/repquota.c index 3c9aca3424c..b04bf1422a2 100644 --- a/usr.sbin/repquota/repquota.c +++ b/usr.sbin/repquota/repquota.c @@ -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);