18b4ece
Set errno before checking it Always set errno to a known value before calling getpwnam_r, which might not set it.