CVSROOT: /cvs Module name: src Changes by: [email protected] 2012/10/12 14:45:49
Modified files:
sys/kern : uipc_usrreq.c
lib/libc/sys : getsockname.2
Log message:
For consistency with other OSes and ease of porting, make
get{sock,peer}name() behave like accept() when the involved UNIX-domain
socket isn't bound to an address, returning an AF_UNIX sockaddr
with zero-length sun_path. Based on diff from robert@ and mikeb@
ok robert@ deraadt@
