]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r329846:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 28 Feb 2018 02:39:38 +0000 (02:39 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 28 Feb 2018 02:39:38 +0000 (02:39 +0000)
commit312e250875e11931483f9224c206559991d4bf36
tree22550f2c94b45a8affae64145f1cf88177a68a72
parent634a06be7cd886c88371504d077034af79d0cfb6
MFC r329846:
getpeereid(3): Fix behavior on failure to match documentation.

According to the getpeereid(3) documentation, on failure the value -1 is
returned and the global variable errno is set to indicate the error. We
were returning the error instead.

Obtained from: Apple's Libc-1244.30.3

git-svn-id: svn://svn.freebsd.org/base/stable/10@330095 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/getpeereid.c