Date: Mon, 8 Jun 2015 20:03:16 +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: r284166 - head/sys/compat/linux Message-ID: <201506082003.t58K3GDu017959@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Mon Jun 8 20:03:15 2015 New Revision: 284166 URL: https://svnweb.freebsd.org/changeset/base/284166 Log: Properly initialize flags for accept4(2) not to return spurious EINVAL. Note this fixes a Linuxulator regression introduced in r283490. PR: 200662 Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linux_socket.c ============================================================================== --- head/sys/compat/linux/linux_socket.c Mon Jun 8 19:45:24 2015 (r284165) +++ head/sys/compat/linux/linux_socket.c Mon Jun 8 20:03:15 2015 (r284166) @@ -787,6 +787,7 @@ linux_accept_common(struct thread *td, i /* XXX: */ bsd_args.name = (struct sockaddr * __restrict)PTRIN(addr); bsd_args.anamelen = PTRIN(namelen);/* XXX */ + bsd_args.flags = 0; error = linux_set_socket_flags(flags, &bsd_args.flags); if (error != 0) return (error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506082003.t58K3GDu017959>