CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/11/23 07:56:25

Modified files:
        sys/kern       : uipc_proto.c 

Log message:
Stop setting pr_protocol to PF_UNIX for unix domain sockets.

This reverts the rev 1.3 commit from 1998:
Allow PF_LOCAL as the proto arg in socketpair(2).  Previously, only
PF_UNSPEC would work.  Needed for general sanity as well as XPG4.2.

PF_LOCAL and AF_LOCAL is dead. So is the idea of passing any value other
than 0 to socketpair's protocol argument. Set pr_protocol explicitly to
0 to show that this is intentional.

This fixes an unexpected return value of 1 for
getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, ...) calls.

Reported by robert@
OK millert@

Reply via email to