Fix connect(2) callers to use correct sockaddr size.
authorJames Peach <jpeach@samba.org>
Sun, 9 Dec 2007 21:28:00 +0000 (13:28 -0800)
committerJames Peach <jpeach@samba.org>
Sun, 9 Dec 2007 21:28:00 +0000 (13:28 -0800)
commitdaba3f8b54b04fe8623db3bab90c3aba15d4c379
tree4730b9a87d7fa87b6f7b677c2053dd5dc72e8ee8
parent2ecdbea0cb8089e09bf6e2ba4c12da09b15036a4
Fix connect(2) callers to use correct sockaddr size.

Some systems (eg Mac OSX 10.5) require the length passed to match
the socket address family. This introduces sys_connect() that does
the right thing, and replaces all uses oc connect(2) with sys_connect().

Note that there are some LGPL callers that still call connect(2)
directly.
(This used to be commit e1bfdc17c49da582cdf907e260301ab1946b2ed3)
source3/lib/ctdbd_conn.c
source3/lib/sock_exec.c
source3/lib/system.c
source3/lib/util_sock.c