how to put a program into a .plan file
Dan Bernstein
brnstnd at kramden.acf.nyu.edu
Fri Sep 28 13:41:00 AEST 1990
In article <2867 at litchi.bbn.com> rsalz at bbn.com (Rich Salz) writes:
> ** Right now, this just keeps a count and runs fortune. A neat hack
> ** would be to replace /usr/etc/in.fingerd with code that does a
> ** getpeername()/gethostbyaddr(), and goes back to the requesting
> ** host to do a finger there.
Neat hack? It's absolutely trivial. You just run fingerd under
attachport (-r) instead of inetd, and its environment will show a REMOTE
variable with the remote host (and authenticated username if the remote
host supports RFC 931).
---Dan
More information about the Comp.unix.programmer
mailing list