]> Savannah Git Hosting - gnulib.git/commit
getlogin_r: Work around bug in Mac OS X 10.12.
authorBruno Haible <bruno@clisp.org>
Sun, 23 Apr 2017 00:45:19 +0000 (02:45 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 23 Apr 2017 00:46:27 +0000 (02:46 +0200)
commit63a51f5a37634098883aa83d78be90e5dffcd9ce
tree603d561f5b0d654808fc39fabf1b12f427924b76
parent8edebfe6f97d0e378d042accb2475a32a53f100f
getlogin_r: Work around bug in Mac OS X 10.12.

* m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
bug.
* lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
given size minus 1, call getlogin_r a second time, on a larger buffer.
* modules/getlogin_r (Depends-on): Add malloca.
* doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
ChangeLog
doc/posix-functions/getlogin_r.texi
lib/getlogin_r.c
m4/getlogin_r.m4
modules/getlogin_r