From 827e29c99efc70354b8dd209d87587ee1e8f549a Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Mon, 16 Jun 2003 18:45:38 +0000 Subject: Fixed a bug in quotacheck(8) parsing of v1 format files introduced by optimalization (Jan Kara) --- quotacheck_v1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'quotacheck_v1.c') diff --git a/quotacheck_v1.c b/quotacheck_v1.c index 1f583f7..320a5dc 100644 --- a/quotacheck_v1.c +++ b/quotacheck_v1.c @@ -37,8 +37,10 @@ static void load_dquots(char *filename, int fd, int type) if (ddqblk.dqb_bhardlimit == 0 && ddqblk.dqb_bsoftlimit == 0 && ddqblk.dqb_ihardlimit == 0 - && ddqblk.dqb_isoftlimit == 0) + && ddqblk.dqb_isoftlimit == 0) { + id++; continue; + } dquot = add_dquot(id, type); udq = &dquot->dq_dqb; udq->dqb_bhardlimit = ddqblk.dqb_bhardlimit; -- cgit v1.2.3