* grp.cc (gr_ent::enumerate_caches): Fix copy/paste bug introducing

an endless loop.
This commit is contained in:
Corinna Vinschen 2014-05-08 08:44:07 +00:00
parent 03039d4fc2
commit a5a75a5a98
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-05-08 Corinna Vinschen <corinna@vinschen.de>
* grp.cc (gr_ent::enumerate_caches): Fix copy/paste bug introducing
an endless loop.
2014-05-07 Corinna Vinschen <corinna@vinschen.de>
* passwd.cc (pwdgrp::parse_passwd): Fix an off by one computing the

View File

@ -364,7 +364,7 @@ gr_ent::enumerate_caches ()
return &grf.group ()[cnt++].g;
}
cnt = 0;
max = 1;
max = 2;
/*FALLTHRU*/
case 2:
if (from_db)