Harald Hanche-Olsen ([EMAIL PROTECTED]) wrote:
: + Chris Johnson <[EMAIL PROTECTED]>:

: | Below is a very simple patch to tcpserver that lets it run the
: | program specified in the environment variable PROG rather than the
: | one named on the command line. I vaguely recall the idea of doing
: | this coming up on the list several months ago, but I can't find the
: | thread now.
: | 
: [...]
: | 
: | Can anyone see anything terribly wrong with doing this?

: Not really, but I assume it would be more DJB-esque to have tcpserver
: run a tiny wrapper program which inspects the environment and then
: runs the appropriate program.  In the event that Dan doesn't want to
: include this feature in tcpserver, this solution also saves you from
: having to add it to every future version of tcpserver that you might
: want to run.

: - Harald

I trust command lines more than the environment, so I'd go with
the tiny wrapper.  With the environment its not always easy to tell
where the values are coming from or who is setting them, so I tend
not to use them for critical upstream things.

-harold

Reply via email to