[project @ 2004-11-05 14:59:33 by stolz] Fix getpwnam_r-handling: getpwnam_r returns (always?) 0, you have to check result* (pppw[0])!
[project @ 2004-11-05 14:59:33 by stolz]
Fix getpwnam_r-handling: getpwnam_r returns (always?) 0, you have
to check result* (pppw[0])!

Truss-log from querying first "root", then "" on SunOS 5.9:

<- libc:__posix_getpwnam_r() = 0
"root"
-> libc:__posix_getpwnam_r(0xff1bf8a8, 0xff1bf460, 0xff1bf490, 0x400)
<- libc:__posix_getpwnam_r() = 0

Yes, that's 0 in both cases.  (I wasn't even able to elicit an ERANGE btw.)

Reported by: Peter Simons

jimenezrick/unix,rimmington/unix,rimmington/unix,rimmington/unix,jimenezrick/unix,thomie/unix,thomie/unix,rimmington/unix