Implemented File Transfer Proctol (FTP)
2600
lines of codeAncestor to many of today's FTP daemons
$ ftp ftp.netbsd.org
220 ftp.NetBSD.org FTP server (NetBSD-ftpd 20040809) ready.
USER anonymous
331 Guest login ok, type your name as password.
PASS anything
230 Guest login ok, access restrictions apply.
LIST
150 Opening ASCII mode data connection for ’/bin/ls’.
(data transferred on separate TCP connection)
226 Transfer complete.
FBAR
500 ’FBAR’: command not understood
YACC grammar
chroot()
to contain anonymouse FTP usersPattern matching
cmd : USER SP username CRLF | PASS SP password CRLF | CWD SP pathname CRLF | ...
Problem: the concept is good, but the code was buggy.