aboutsummaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_socket.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index a2b45edf7bdc..d51b9945b434 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1538,6 +1538,12 @@ linux_recvmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr,
if (error != 0)
return (error);
+ /*
+ * Pass user-supplied recvmsg() flags in msg_flags field,
+ * following sys_recvmsg() convention.
+ */
+ linux_msghdr.msg_flags = flags;
+
error = linux_to_bsd_msghdr(msg, &linux_msghdr);
if (error != 0)
return (error);