Date: Wed, 26 Jun 2002 14:46:56 -0700 (PDT) From: Garrett Wollman <wollman@FreeBSD.org> To: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: cvs commit: src/libexec/fingerd fingerd.8 fingerd.c Message-ID: <200206262146.g5QLkuA3063499@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
wollman 2002/06/26 14:46:56 PDT Modified files: libexec/fingerd fingerd.8 fingerd.c Log: When the -p flag is specified, set an environment variable to the name of the remote host (or rather, the name as mangled by realhostname_sa()) so that the process can use it to behave differently depending on the origin on the request. We use this to implement rudimentary visibility control on our user information. Make sure that the child process's standard error goes through the same NVT-ASCII filter as is applied to the standard output. Don't attempt to call logerr() from the child since stdio is not safe in a vforked process. Just write a message to fd 2 instead. (Ideally, the parent would open two pipes, and siphon off our stderr to some place less public, but I have not attempted to do so in this implementation.) Revision Changes Path 1.9 +8 -1 src/libexec/fingerd/fingerd.8 1.22 +23 -12 src/libexec/fingerd/fingerd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206262146.g5QLkuA3063499>