mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 09:26:37 +00:00
increase size for unix domain socket pathname from arbitrary 100
to PATH_MAX to solve tests erroring out on OSX with long temporary file names.
This commit is contained in:
parent
641d749ab4
commit
2bbdd523f0
@ -88,7 +88,7 @@ int overlay_mdp_setup_sockets()
|
||||
}
|
||||
#endif
|
||||
if (mdp_named.poll.fd<=0) {
|
||||
if (!form_serval_instance_path(&name.sun_path[0], 100, "mdp.socket"))
|
||||
if (!form_serval_instance_path(&name.sun_path[0], PATH_MAX, "mdp.socket"))
|
||||
return WHY("Cannot construct name of unix domain socket.");
|
||||
unlink(&name.sun_path[0]);
|
||||
len = 0+strlen(&name.sun_path[0]) + sizeof(name.sun_family)+1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user