Author: dchagin
Date: Sat Jan  9 18:22:09 2016
New Revision: 293605
URL: https://svnweb.freebsd.org/changeset/base/293605

Log:
  MFC r284166 (by jkim):
  
  Properly initialize flags for accept4(2) not to return spurious EINVAL.
  Note this fixes a Linuxulator regression introduced in r283490.
  
  PR:             200662

Modified:
  stable/10/sys/compat/linux/linux_socket.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/compat/linux/linux_socket.c
==============================================================================
--- stable/10/sys/compat/linux/linux_socket.c   Sat Jan  9 18:19:18 2016        
(r293604)
+++ stable/10/sys/compat/linux/linux_socket.c   Sat Jan  9 18:22:09 2016        
(r293605)
@@ -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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"

Reply via email to