Re: very simple tcpd replacement
Raul Miller <rdm@test.legislate.com> writes:
> #!/bin/perl
> print "$0\n";
The script in my first post tried this too, and the result was
"/dev/fd/3" when the argv[0] passed to exec was not a name of the
script.
When the original argv[0] is a name of the script file, it is
indeed saved and made available to the interpreter. But the tcpd
calling convention wants the filename of the real server in
argv[0]. It cannot be a filename of tcpd.
I still think this is a mistake in the design of tcpd.
Reply to: