From bc783befbda947a7d789eebd70c64ec736892df5 Mon Sep 17 00:00:00 2001 From: Mikko Lehto Date: Thu, 28 Apr 2016 15:02:29 +0300 Subject: [PATCH] lib/binrpc modules/ctl utils/kamcmd : set UNIX_PATH_MAX to lowest common value sockaddr_un.sun_path[] seem to be either 104 or 108 in following Unices: 104 - NetBSD, OpenBSD, FreeBSD, DragonFly BSD, MINIX, XNU(Apple OS X) 108 - illumos, Solaris, Linux --- lib/binrpc/binrpc_api.c | 2 +- modules/ctl/init_socks.c | 2 +- utils/kamcmd/kamcmd.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/binrpc/binrpc_api.c b/lib/binrpc/binrpc_api.c index e67c58924a0..91457581b3d 100644 --- a/lib/binrpc/binrpc_api.c +++ b/lib/binrpc/binrpc_api.c @@ -53,7 +53,7 @@ #define binrpc_free internal_free #ifndef UNIX_PATH_MAX -#define UNIX_PATH_MAX 108 +#define UNIX_PATH_MAX 104 #endif #ifndef INT2STR_MAX_LEN diff --git a/modules/ctl/init_socks.c b/modules/ctl/init_socks.c index 0bbaebc3646..29c67f9a25e 100644 --- a/modules/ctl/init_socks.c +++ b/modules/ctl/init_socks.c @@ -37,7 +37,7 @@ #include #ifndef UNIX_PATH_MAX -#define UNIX_PATH_MAX 108 +#define UNIX_PATH_MAX 104 #endif diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c index 33816312316..4211741deb8 100644 --- a/utils/kamcmd/kamcmd.c +++ b/utils/kamcmd/kamcmd.c @@ -82,7 +82,7 @@ #ifndef UNIX_PATH_MAX -#define UNIX_PATH_MAX 100 +#define UNIX_PATH_MAX 104 #endif static char id[]="$Id$";