summaryrefslogtreecommitdiff
path: root/quotacheck_v2.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2004-05-24 19:39:15 +0000
committerjkar8572 <jkar8572>2004-05-24 19:39:15 +0000
commite1200421607be898a9c56618948c3f5e4e00781e (patch)
tree0d5c6787f879b8cd79c324683bdde037d26ac2b5 /quotacheck_v2.c
parent06ac151a68c668a8c4cee8a2a377b0ae93b99fb1 (diff)
Updated version to 3.12
Fixed a few memleaks Added two manpages Fixed problem with all-zero root structure
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;
}