summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-06-05 00:05:05 +0000
committerJeremy Allison <jra@samba.org>2002-06-05 00:05:05 +0000
commit08f0cbb33f74ee6b8ec591ca78f167498cf80074 (patch)
tree92ff220fbc93438177c778be5eaa5107208e401a /source3/nsswitch
parentebe58d85692ee5a8088762908ffaeb3e19ff45f3 (diff)
downloadsamba-08f0cbb33f74ee6b8ec591ca78f167498cf80074.tar.gz
samba-08f0cbb33f74ee6b8ec591ca78f167498cf80074.tar.bz2
samba-08f0cbb33f74ee6b8ec591ca78f167498cf80074.zip
Fix for Linux kernel bug where signal mask set within a signal handler
is being ignored on sighandler exit. This means we have to have a small array of fd's, not a single one. Jeremy. (This used to be commit b06862e2de8d3bafbc10a9807501ef5bf148a61c)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wins.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/source3/nsswitch/wins.c b/source3/nsswitch/wins.c
index b8fad9f973..2ecdbf1c51 100644
--- a/source3/nsswitch/wins.c
+++ b/source3/nsswitch/wins.c
@@ -319,5 +319,19 @@ _nss_wins_gethostbyname_r(const char *name, struct hostent *he,
return NSS_STATUS_SUCCESS;
}
-#endif
+
+NSS_STATUS
+_nss_wins_gethostbyname2_r(const char *name, int af, struct hostent *he,
+ char *buffer, size_t buflen, int *errnop,
+ int *h_errnop)
+{
+ if(af!=AF_INET) {
+ *h_errnop = NO_DATA;
+ *errnop = EAFNOSUPPORT;
+ return NSS_STATUS_UNAVAIL;
+ }
+
+ return _nss_wins_gethostbyname_r(name,he,buffer,buflen,errnop,h_errnop);
+}
+#endif