> > I really want to delete telnet entirely, > > I often use it for testing unencrypted SMTP and HTTP across the > Internet. Which tool would you recommend for that purpose?
nc(1). > You might wish to cross-check these three points though: > > * Does "inet" actually allow the following setsockopt() > arguments: SO_DEBUG, SO_RTABLE, IP_TOS, IPV6_TCLASS? > I know nothing about socket options. I think all of those should be deleted, except perhaps SO_RTABLE, which should be done line in nc(1). > * Does ioctl(TIOCGWINSZ) in TerminalWindowSize(), sys_bsd.c > require "ioctl"? The pledge(2) manual seems to say so. "tty" > * Do getpwnam() and getpwuid() in tn(), commands.c > require "getpw"? The pledge(2) manual seems to say so, > or is "rpath" sufficient here and YP irrelevant? Adding "getpw" at the initial pledge; the later one is main loop and never needs it again. Few other changes coming on top of that.