summaryrefslogtreecommitdiff
path: root/quotacheck_v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'quotacheck_v2.c')
-rw-r--r--quotacheck_v2.c7
1 files changed, 5 insertions, 2 deletions
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;
}