libfetch: Change FTP default to passive mode
authorJohn Marino <draco@marino.st>
Fri, 2 Nov 2012 17:59:00 +0000 (18:59 +0100)
committerJohn Marino <draco@marino.st>
Fri, 2 Nov 2012 19:08:08 +0000 (20:08 +0100)
commit1a343b52c8323fbdb6cc6c89e9b74e6fe2e8a95a
treeaece2f25c3dc57a0e16ba317fce6fb314fdf516a
parent9f1bbd2995bfc52ec1774290ac8adb68b110e883
libfetch: Change FTP default to passive mode

1. The caller can select active mode using "P" flag.
2. If the "p" passive flag is also present, it takes precedence over "P"
   so the connection will be attempted in passive mode.

Taken-from: FreeBSD SVN 225810 (27 SEP 2011)
Taken-from: FreeBSD SVN 225812 (27 SEP 2011)
lib/libfetch/fetch.3
lib/libfetch/ftp.c