Commit 96c524d8 authored by Alexander V. Chernikov's avatar Alexander V. Chernikov
Browse files

linux: fix linux_recvmsg() MSG_PEEK flag handling

Reviewed by:	kib
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D33790
parent b896bdb8
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment