make use of getline(3) in ftp(1)
authornaddy <naddy@openbsd.org>
Tue, 16 Feb 2021 16:27:34 +0000 (16:27 +0000)
committernaddy <naddy@openbsd.org>
Tue, 16 Feb 2021 16:27:34 +0000 (16:27 +0000)
commitbb1c3b3ff7308a1eedba8dc4780f76819332dbe8
treea079adb2d368668196a6469c79259b56b8de364b
parente39b96b32c8e014192a7c2f1cd515ebd409e84ec
make use of getline(3) in ftp(1)

Replace fparseln(3) with getline(3).  This removes the only use of
libutil.a(fparseln.o) from the ramdisk.
Replace a complicated fgetln(3) idiom with the much simpler getline(3).

ok jca@
distrib/special/ftp/Makefile
usr.bin/ftp/Makefile
usr.bin/ftp/cookie.c
usr.bin/ftp/fetch.c