mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
Use ENAMETOOLONG if the the socket path is longer than UNIX_PATH_MAX
This commit is contained in:
parent
fbae3d6f9e
commit
6bab30d071
@ -327,7 +327,8 @@ int virNetSocketNewListenUNIX(const char *path,
|
||||
|
||||
addr.data.un.sun_family = AF_UNIX;
|
||||
if (virStrcpyStatic(addr.data.un.sun_path, path) == NULL) {
|
||||
virReportSystemError(ENOMEM, _("Path %s too long for unix socket"), path);
|
||||
virReportSystemError(ENAMETOOLONG,
|
||||
_("Path %s too long for unix socket"), path);
|
||||
goto error;
|
||||
}
|
||||
if (addr.data.un.sun_path[0] == '@')
|
||||
|
Loading…
Reference in New Issue
Block a user