Anonymous ftp used to fail on apollos because the chroot system call
was missing.  The file apollo.c and small changes to ftpd.c fix
that.  Compile in a BSD4.3 environment.

The changes here are not perfect.  In particular, something like
"get pub/README" will fail, i.e. getting or putting a file not in
the current directory.  Fixing it is left as an exercise. =)

If you have questions or comments about the changes mail to
sls@ocf.berekeley.edu.

How to Install Anonymous FTP
----------------------------
1.  Compile the new ftpd.

2.  Copy the new ftpd to /etc/ftpd.

3.  If you want logging turned on edit the ftp line in /etc/inetd.conf
to read:

# ftpd offers file transfer services.
ftp             stream  tcp     nowait  root    /etc/ftpd       ftpd -l

Logging is through syslog, priority daemon.info.  If you edited
inetd.conf you will have to reset inetd.

4.  Make an account 'ftp', and make sure that it's home directory is a
complete path starting with '//'.  You do not have to create the
directories bin and etc as on a normal Unix system.

That's it.  Because chroot() is never really called, you can use
symbolic links to anywhere from the ftp directory.  However, if you
symbolic link to a directory ftpd will become very confused about
where it is when you cd there.  For this reason, you should only
symbolic link to files.
