Index | Thread | Search

From:
Todd C. Miller <millert@openbsd.org>
Subject:
Re: user(8) group line limit
To:
David Leadbeater <dgl@dgl.cx>
Cc:
tech@openbsd.org
Date:
Wed, 11 Mar 2026 20:40:54 -0600

Download raw body.

Thread
On Thu, 12 Mar 2026 12:22:48 +1100, David Leadbeater wrote:

> The line length limit used for /etc/group in user(8) does not match what
> group(5) documents. This results in a command like usermod -G group user
> succeeding, but getgrent(2) no longer accepting the line, resulting in
> all the users appearing to drop out of the group.

Is there a reason you didn't just limit the size of buf in the group
functions to 1024 (or some define)?  It looks like that would also
have the desired effect.

 - todd