Configurable buffer size for getpwnam() and getgrnam()

Peter Kjellerstedt peter.kjellerstedt at axis.com
Fri Dec 8 00:50:37 PST 2006


> -----Original Message-----
> From: uclibc-bounces at uclibc.org 
> [mailto:uclibc-bounces at uclibc.org] On Behalf Of Bernhard Fischer
> Sent: Wednesday, December 06, 2006 22:21
> To: Ricard Wanderlöf
> Cc: uClibc mailing list
> Subject: Re: Configurable buffer size for getpwnam() and getgrnam()
> 
> On Wed, Dec 06, 2006 at 05:35:11PM +0100, Ricard Wanderlof wrote:
> >The following patch adds a configurable buffer size for 
> >getpwnam() and getgrnam() and friends. The default buffer 
> >size is, as before, 256 (glibc seems to use 1024 by default).
> 
> >diff -u -r uClibc-trunk/extra/Configs/Config.in 
> >uClibc-dev/extra/Configs/Config.in
> >--- uClibc-trunk/extra/Configs/Config.in	2006-12-06 14:02:59.000000000 +0100
> >+++ uClibc-dev/extra/Configs/Config.in	2006-12-06 14:17:36.000000000 +0100
> >@@ -592,6 +592,28 @@
> >
> > endmenu
> >
> >+menu "Advanced Library Settings"
> >+
> >+config UCLIBC_PWD_BUFFER_SIZE
> >+	int "Buffer size for getpwnam() and friends"
> >+	default 256
> 
> Perhaps you want to add a range here, since you don't check what was
> passed in, AFAICS.
> 
> >+	help

What would be an appropriate range?

//Peter


More information about the uClibc mailing list