]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup from BIND 8:
authorMark Andrews <marka@isc.org>
Fri, 25 May 2001 05:21:25 +0000 (05:21 +0000)
committerMark Andrews <marka@isc.org>
Fri, 25 May 2001 05:21:25 +0000 (05:21 +0000)
1215.  [bug]           long UNIX domain control socket names were not being
                       printed in full.

lib/bind/isc/ctl_p.h

index 1ebb2542367a5fdae46cf43b2e3c0b1ef2fa9ae8..42aade7d669d49f4f95dd8fc5b915477502f8b43 100644 (file)
@@ -4,7 +4,11 @@ struct ctl_buf {
 };
 
 #define        MAX_LINELEN             990     /* Like SMTP. */
+#ifndef NO_SOCKADDR_UN
+#define MAX_NTOP                       PATH_MAX
+#else
 #define        MAX_NTOP                (sizeof "[255.255.255.255].65535")
+#endif
 
 #define        allocated_p(Buf) ((Buf).text != NULL)
 #define        buffer_init(Buf) ((Buf).text = 0, (Buf.used) = 0)