From a5a75a5a98a561e03c577c2faba7040c55d8161d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 8 May 2014 08:44:07 +0000 Subject: [PATCH] * grp.cc (gr_ent::enumerate_caches): Fix copy/paste bug introducing an endless loop. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/grp.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 21608730e..5efecd23b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2014-05-08 Corinna Vinschen + + * grp.cc (gr_ent::enumerate_caches): Fix copy/paste bug introducing + an endless loop. + 2014-05-07 Corinna Vinschen * passwd.cc (pwdgrp::parse_passwd): Fix an off by one computing the diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc index 3ccdbee0f..43cae6dc4 100644 --- a/winsup/cygwin/grp.cc +++ b/winsup/cygwin/grp.cc @@ -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)