-
Problem report
-
Resolution: Fixed
-
Trivial
-
3.4.5rc1, 4.0.0alpha1
-
Sprint 23, Sprint 24
-
0.25
Steps to reproduce:
- Put a long SocketDir in server or proxy configuration file
- Try to start Zabbix
Result:
In case ipc_make_path() fails users will see "Invalid service name ..." error messages in the log file:
if (NULL == (socket_path = ipc_make_path(service_name))) { *error = zbx_dsprintf(*error, "Invalid service name \"%s\".", service_name); goto out; }
Expected:
What is actually a problem is that a generated socket file path proved to be too long:
* Return value: The created path or NULL if the path exceeds unix domain * * socket path maximum length * * * ******************************************************************************/ static const char *ipc_make_path(const char *service_name)