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)
commite1bfdc17c49da582cdf907e260301ab1946b2ed3
tree30d0dec09c7e41ef9e9f54db023d16a05aa11206
parentffee51586cfc32a7e394f606e5021ee8fd198559
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.
source/lib/ctdbd_conn.c
source/lib/sock_exec.c
source/lib/system.c
source/lib/util_sock.c