Configurable buffer size for getpwnam() and getgrnam()
Bernhard Fischer
rep.nop at aon.at
Wed Dec 6 13:20:45 PST 2006
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
More information about the uClibc
mailing list