Ok, this is a standard ftpd.

Look at ftpd.c and ftpd.c.old (I don't yet know how to make diffs ?!!?). Notice
especially the top two hacks of seteuid(), and setegid() I had to make.

You need bison/yacc to compile ftpcmd.y. However here's one I made earlier -in
ftpcmd.c.done. Also I had to hack out line 460 in ftpcmd.y for it to compile.
I don't know how much damage this caused - but there you go!

Because of Linus and HLU's header file clashes I had to make an explicit entry
to /usr/include/ctype.h in ftpcmd.y

Look at my services file, and copy the appropriate entry into your file.

NOW do a make install. I have included a binary for you guys to test out. It
was compiled using gcc-2.2.2d with jump-table. Beware!!

Please note that I have a link from /etc/inet to /etc, so a make install will
actually install the deamon to /etc/ftpd, although the /etc/services, (or even
/etc/inet/sevices), file says otherwise!! Beware!!


NOW THE BUGS :-

As before for Ross's patch for outgoing ftp connections (i.e. from
linux <-> sun/dec....) the connection would hang when closing the file. Ross
gracefully provided a patch. Anyone willing to figure out why going from
sun/dec... <-> linux similarly doesn't close the connection, even though the
complete integral file is transfered, is welcome to try.

Mitch
mitchum.dsouza@mrc-apu.cam.ac.uk
