libfetch: Mark all socket and file descriptors close-on-exec
authorJohn Marino <draco@marino.st>
Thu, 1 Nov 2012 19:54:53 +0000 (20:54 +0100)
committerJohn Marino <draco@marino.st>
Thu, 1 Nov 2012 21:56:18 +0000 (22:56 +0100)
commitad48ea3757e4b0125ffb7567af38f499125e6780
tree98d89fb5bf1cab2745965dba547e7d894824cbf6
parent5807cf3c35db5fe11789b11a0bbdc96210746d1f
libfetch: Mark all socket and file descriptors close-on-exec

This allows libfetch to close cached sockets.
Also add cast that helped FreeBSD move warns to 6

Taken-from: FreeBSD SVN 221822 (12 May 2011)
Taken-from: FreeBSD SVN 221830 (13 May 2011)
lib/libfetch/common.c
lib/libfetch/file.c
lib/libfetch/ftp.c