--- - branch: MAIN date: Sat Oct 24 09:01:56 UTC 2020 files: - new: '1.151' old: '1.150' path: src/sys/compat/linux/common/linux_socket.c pathrev: src/sys/compat/linux/common/linux_socket.c@1.151 type: modified id: 20201024T090156Z.5f02eeb139200cec9015f52c73296ab6436036af log: | Fix compat with Linux programs that use longer namelen for sockets Linux is less strict than NetBSD and permits namelen to be larger than valid struct sockaddr_in*. If this is the case, truncate the value to the correct size, so that NetBSD networking does not return an error. Reviewed by kamil module: src subject: 'CVS commit: src/sys/compat/linux/common' unixtime: '1603530116' user: mgorny