Re: C set-user-ID program wrapper for Perl script and security



Peter Michaux said:

On Aug 30, 3:03 pm, "Malcolm McLean" <regniz...@xxxxxxxxxxxxxx> wrote:

it is reasonable to hardcode paths in a Perl script,
much less sensible to do so in a C program.

Why is that?

No reason whatsoever. Malcolm is wrong. If you want to hardcode paths in a
C program, go to it. There will be an impact on portability (because the
path might not have the same semantics or might not even exist on another
machine), but that argument applies just as much to the Perl script.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.