Handle too-small buffers in Linux getlogin_r.