]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1998. [bug] Restrict handling of fifos as sockets to just SunOS.
authorMark Andrews <marka@isc.org>
Thu, 2 Mar 2006 23:29:17 +0000 (23:29 +0000)
committerMark Andrews <marka@isc.org>
Thu, 2 Mar 2006 23:29:17 +0000 (23:29 +0000)
                        This allows named to connect to entropy gathering
                        daemons that use fifos instead of sockets. [RT #15840]

CHANGES
lib/isc/unix/entropy.c

diff --git a/CHANGES b/CHANGES
index a8e79e2ec46d53a1ae1c0cd21a86dd575e1794cb..370779e24ea6ea1f384b14eddb077334538983c8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+1998.  [bug]           Restrict handling of fifos as sockets to just SunOS.
+                       This allows named to connect to entropy gathering
+                       daemons that use fifos instead of sockets. [RT #15840]
+
 1997.  [bug]           Named was failing to replace negative cache entries
                        when a positive one for the type was learnt.
                        [RT #15818]
index a06311145b948e03871daebb2c2957fa95cd2743..d52849aa35b846c2b64204da1c08b8def56e8a1c 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: entropy.c,v 1.60.2.3.8.13 2006/01/06 00:01:42 marka Exp $ */
+/* $Id: entropy.c,v 1.60.2.3.8.14 2006/03/02 23:29:17 marka Exp $ */
 
 /*
  * This is the system depenedent part of the ISC entropy API.
@@ -503,7 +503,7 @@ isc_entropy_createfilesource(isc_entropy_t *ent, const char *fname) {
        if (S_ISSOCK(_stat.st_mode))
                is_usocket = ISC_TRUE;
 #endif
-#if defined(S_ISFIFO)
+#if defined(S_ISFIFO) && defined(sun)
        if (S_ISFIFO(_stat.st_mode))
                is_usocket = ISC_TRUE;
 #endif