Date: Mon, 27 Jul 1998 13:40:02 -0700 (PDT) From: Jacques Vidrine <n@nectar.com> To: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/2859: /usr/bin/quota seems to choke on long group file entries Message-ID: <199807272040.NAA19899@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/2859; it has been noted by GNATS. 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> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807272040.NAA19899>