"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: gotwebd_ngroups not initialized
To:
Denis Bodor <dbodor@lefinnois.net>
Cc:
gameoftrees@openbsd.org
Date:
Mon, 26 May 2025 21:39:56 +0200

Download raw body.

Thread
On Mon, May 26, 2025 at 07:08:03PM +0200, Denis Bodor wrote:
> Hi,
> 
> I'm playing with gotwebd and the daemon won't launch with messages like :
> gotwebd: too many groups for user _gotwebd
> 
> The problem comes from the getgrouplist() call, where gotwebd_ngroups
> should be initialised with the size of gotwebd_groups.
> 
> So:
> 
> int ch, i, gotwebd_ngroups;
> 
> should be:
> 
> int ch, i, gotwebd_ngroups = NGROUPS_MAX;

Fixed on the main branch. Thank you!