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
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/589
-- Commit Summary --
* lib/binrpc modules/ctl utils/kamcmd : set UNIX_PATH_MAX to lowest common value
-- File Changes --
M lib/binrpc/binrpc_api.c (2)
M modules/ctl/init_socks.c (2)
M utils/kamcmd/kamcmd.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/589.patchhttps://github.com/kamailio/kamailio/pull/589.diff
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/589
Hi, All.
This scriplet will not do what we need:
preinstall scriptlet (using /bin/sh):
**/usr/sbin/groupadd** -r kamailio 2> /dev/null || :
**/usr/sbin/useradd** -r -g kamailio -s /bin/false -c "Kamailio daemon" \
-d /var/run/kamailio kamailio 2> /dev/null || :
The cause is, that utils **groupadd** and **useradd** are located under **/sbin** directory in OEL7.x
Solution: to add an **if** statement to determine which path to use, like:
if [ -e /sbin/useradd ]; then ......; else .....; fi
or use RPM macro to determine which EL is actually used.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/584