nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT
authorGerald (Jerry) Carter <jerry@samba.org>
Wed, 20 Aug 2008 18:00:40 +0000 (13:00 -0500)
committerKarolin Seeger <kseeger@samba.org>
Thu, 21 Aug 2008 06:46:18 +0000 (08:46 +0200)
commit15e8e23466ae959bd0efc540c287338dbcd0b7a6
tree029ca6f853474e0939eba6d7374329a2bccd98d6
parentebd1f8f9297b31353d094ddccc320a83f02877ce
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 29b39723b82f363d32dc4678d6b71a78485c65ce)
source/nsswitch/wb_common.c