From e1200421607be898a9c56618948c3f5e4e00781e Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Mon, 24 May 2004 19:39:15 +0000 Subject: Updated version to 3.12 Fixed a few memleaks Added two manpages Fixed problem with all-zero root structure --- quotacheck_v2.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'quotacheck_v2.c') diff --git a/quotacheck_v2.c b/quotacheck_v2.c index 6ede24e..494f957 100644 --- a/quotacheck_v2.c +++ b/quotacheck_v2.c @@ -198,8 +198,11 @@ static int buffer_entry(dqbuf_t buf, uint blk, int *corrupted, uint * lblk, int fdq->dqb_bsoftlimit = mdq.dqb_bsoftlimit; fdq->dqb_ihardlimit = mdq.dqb_ihardlimit; fdq->dqb_isoftlimit = mdq.dqb_isoftlimit; - fdq->dqb_btime = mdq.dqb_btime; - fdq->dqb_itime = mdq.dqb_itime; + /* Add grace times only if there are limits... */ + if (mdq.dqb_bsoftlimit) + fdq->dqb_btime = mdq.dqb_btime; + if (mdq.dqb_isoftlimit) + fdq->dqb_itime = mdq.dqb_itime; } return 0; } -- cgit v1.2.3