From chip@jlc.net  Mon Mar  3 13:31:22 1997
Received: from verdi.jlc.net (root@verdi.jlc.net [199.201.159.1])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA28853
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Mar 1997 13:31:19 -0800 (PST)
Received: (from chip@localhost) by verdi.jlc.net (8.8.3/8.6.9) id QAA15549; Mon, 3 Mar 1997 16:32:45 -0500 (EST)
Message-Id: <199703032132.QAA15549@verdi.jlc.net>
Date: Mon, 3 Mar 1997 16:32:45 -0500 (EST)
From: Chip Marshall <chip@jlc.net>
Reply-To: chip@jlc.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: /usr/bin/quota seems to choke on long group file entries
X-Send-Pr-Version: 3.2

>Number:         2859
>Category:       bin
>Synopsis:       /usr/bin/quota seems to choke on long group file entries
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar  3 13:40:02 PST 1997
>Closed-Date:    Tue Jul 6 19:19:11 PDT 1999
>Last-Modified:  Tue Jul  6 19:19:44 PDT 1999
>Originator:     Chip Marshall
>Release:        FreeBSD 2.1.5-STABLE i386
>Organization:
John Leslie Consulting
>Environment:


>Description:

When quota is run on a group whose entry in the group file (/etc/group) is too
long, it will not recognize the group as a valid group.

>How-To-Repeat:

Add a group entry and add usernames until it is approx. 400+ charecters long.
Run /usr/bin/quota -g [groupname]

>Fix:
	
Unknown to me
>Release-Note:
>Audit-Trail:

From: Jacques Vidrine <n@nectar.com>
To: freebsd-gnats-submit@freebsd.org, chip@jlc.net
Cc:  Subject: Re: bin/2859: /usr/bin/quota seems to choke on long group file entries
Date: Mon, 27 Jul 1998 15:20:09 -0500

 This is actually a limitation of getgroups() and family.  The line
 length is limited to 1024 characters.  
 
 In a pinch, one change the definition of MAXLINELENGTH in
 libc/gen/getgrent.c to something larger and recompile libc.
 
 This is fixed in -CURRENT, revision 1.14 libc/gen/getgrent.c,
 where such buffers are dynamically allocated, and the restriction
 is now 256K per line.
 -- 
 Jacques Vidrine <n@nectar.com>

From: Jacques Vidrine <n@nectar.com>
To: freebsd-gnats-submit@freebsd.org, chip@jlc.net
Cc:  Subject: Re: bin/2859: /usr/bin/quota seems to choke on long group file entries
Date: Mon, 27 Jul 1998 15:39:00 -0500

 This is actually a limitation of getgroups() et.al.  The
 maximum line length is limited to 1024 characters in
 libc/gen/getgrent.c.
 
 A workaround might be to change the definition of MAXLINELENGTH
 in libc/gen/getgrent.c and recompile libc.
 
 This is fixed in -CURRENT, revision 1.14 of getgrent.c by using
 dynamically allocated buffers rather than a static buffer.  The
 resulting implementation can handle line lengths of up to
 256 Kbytes.
 -- 
 Jacques Vidrine <n@nectar.com>
State-Changed-From-To: open->closed 
State-Changed-By: nrahlstr 
State-Changed-When: Tue Jul 6 19:19:11 PDT 1999 
State-Changed-Why:  
Fixed in revision 1.14 of libc/gen/getgrent.c by wosch. 
>Unformatted:
