Date: Thu, 6 Oct 2011 20:28:08 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r226071 - head/sys/compat/linux Message-ID: <201110062028.p96KS8R3076450@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Thu Oct 6 20:28:08 2011 New Revision: 226071 URL: http://svn.freebsd.org/changeset/base/226071 Log: Retern more appropriate errno when Linux path name is too long. Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linux_socket.c ============================================================================== --- head/sys/compat/linux/linux_socket.c Thu Oct 6 20:25:35 2011 (r226070) +++ head/sys/compat/linux/linux_socket.c Thu Oct 6 20:28:08 2011 (r226071) @@ -158,7 +158,7 @@ linux_getsockaddr(struct sockaddr **sap, namelen = strnlen(((struct sockaddr_un *)kosa)->sun_path, osalen - hdrlen); if (hdrlen + namelen > sizeof(struct sockaddr_un)) { - error = EINVAL; + error = ENAMETOOLONG; goto out; } alloclen = sizeof(struct sockaddr_un);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110062028.p96KS8R3076450>