Re: getpwnam_r returns EINVAL on FreeBSD 8.3

2012-12-05 Thread Dan Lists
On Mon, Dec 3, 2012 at 5:54 PM, Dan Lists lists@gmail.com wrote: After upgrading a server from FreeBSD 7.3 to FreeBSD 8.3 I noticed this bug. Since upgrading, getpwnam_r is acting inconsistently. If I look up a user that does not exist and the name is 16 characters or less, getpwnam_r

getpwnam_r returns EINVAL on FreeBSD 8.3

2012-12-03 Thread Dan Lists
After upgrading a server from FreeBSD 7.3 to FreeBSD 8.3 I noticed this bug. Since upgrading, getpwnam_r is acting inconsistently. If I look up a user that does not exist and the name is 16 characters or less, getpwnam_r returns 0 and the result is NULL. If the name is more than 16 characters,