[Freeipa-devel] [PATCHES 134-136] extdom: handle ERANGE return code for getXXYYY_r()

Alexander Bokovoy abokovoy at redhat.com
Mon Mar 2 19:02:32 UTC 2015


On Mon, 02 Mar 2015, Sumit Bose wrote:
>Hi,
>
>the attached patches add ERANGE handling to getpwnam(), getpwuid(),
>getgrnam() and getgrgid().
>
>I added a configurable limit to the buffer allocation which defaults to
>128MB. If you think this limit should be change or there should be no
>limit at all please let me know.
I'd recommend to increase minimal buffer size to 16KB or sysconf value
whatever is higher (current sysconf initial value is 1KB which is low
for our needs).

128MB for maximum before bailing out seems OK.

I haven't reviewed the rest of patches yet.

-- 
/ Alexander Bokovoy




More information about the Freeipa-devel mailing list