Subject: NetBSD master CVS tree commits
To: None <source-changes@NetBSD.ORG>
From: The Source of All Evil <source@NetBSD.ORG>
List: source-changes
Date: 06/04/1998 01:30:02
lukem
Thu Jun  4 01:28:37 PDT 1998
Update of /cvsroot/src/usr.bin/ftp
In directory nb00:/tmp/cvs-serv10349

Modified Files:
	cmds.c complete.c domacro.c extern.h fetch.c ftp.1 ftp.c 
	ftp_var.h main.c ruserpass.c util.c 
Log Message:
some fixes & enhancements from openbsd's ftp, with extra fixes by me:
* default to passive with active fallback. $FTPMODE modifies this behaviour.
  -A forces active connection.
* support '-o outfile' for auto-fetched files. outfile can be a file,
  `-' (for stdout), or '|command' (to output each file through command).
* support '-r waittime', which retries the connection after waittime seconds
  if it fails.
* fix 'page file' when restart is non-zero.
* try all ip-addresses of a host in a http fetch (as the normal ftp fetch
  does).

XXX: a ``broken pipe'' error sometimes occurs with -o '|command';
i haven't tracked this down yet.