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); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"