提交 6bab30d0 编写于 作者: G Guido Günther

Use ENAMETOOLONG if the the socket path is longer than UNIX_PATH_MAX

上级 fbae3d6f
......@@ -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] == '@')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册