Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src/sys/compat/linux/common



Module Name:    src
Committed By:   martin
Date:           Sun Nov  8 08:39:13 UTC 2020

Modified Files:
        src/sys/compat/linux/common [netbsd-9]: linux_socket.c

Log Message:
Pull up following revision(s) (requested by kamil in ticket #1127):

        sys/compat/linux/common/linux_socket.c: revision 1.151

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


To generate a diff of this commit:
cvs rdiff -u -r1.145.4.2 -r1.145.4.3 \
    src/sys/compat/linux/common/linux_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index