]> git.ipfire.org Git - thirdparty/glibc.git/commit
posix: Fix getpwnam_r usage (BZ #1062)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 4 Sep 2017 20:00:03 +0000 (17:00 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 8 Sep 2017 13:51:34 +0000 (15:51 +0200)
commit5a79f97554af6f2eb0a654f844b3d1f56937064d
tree82203e9a014e822551ce612fa7783a5924c7b12e
parente00f2425996829632de5abff88bc1797558ce92e
posix: Fix getpwnam_r usage (BZ #1062)

This patch fixes longstanding misuse of errno after getpwnam_r,
which returns an error number rather than setting errno.  This is
sync with gnulib commit 5db9301.

Checked on x86_64-linux-gnu and on a build using build-many-glibcs.py
for all major architectures.

[BZ #1062]
* posix/glob.c (glob): Port recent patches to platforms
lacking getpwnam_r.
(glob): Fix longstanding misuse of errno after getpwnam_r, which
returns an error number rather than setting errno.
ChangeLog
posix/glob.c