nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT
commit30e6b4f4a45643c7a0fe4f2ae038148e50b1f8c4
authorGerald (Jerry) Carter <jerry@samba.org>
Wed, 20 Aug 2008 18:00:40 +0000 (20 13:00 -0500)
committerKarolin Seeger <kseeger@samba.org>
Thu, 21 Aug 2008 12:12:53 +0000 (21 14:12 +0200)
tree9c146003859c4f34a6aaaedd16b0f0d4c8add933
parent0f71b748a580defaf994809f91c9d9654eab3554
nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT

According to the GNU libc nss guide, we should always set
errno to ENOENT when returning NSS_UNAVAIL.

http://www.gnu.org/software/libtool/manual/libc/NSS-Modules-Interface.html#NSS-Modules-Interface

At least the MQ Series message queing service that runs
on WebSphere will fail if you return any other errno in this case.
(cherry picked from commit ee26664602445fa7798e2061f6bcbef0756d6528)
(cherry picked from commit a46d7ffeef1807bafda15eb76ec74fcf41aae7f6)
source/nsswitch/wb_common.c