On Friday 22 February 2008, Eric Martin wrote:
> Matthias Guede wrote:
> > Make sure your working directory is in the path:
> >
> > PATH="${PATH}:./" ./python /usr/bin/emerge python
>
> !!Big security hole!! ./ is purposely left out of the path so people
> can't sneak fake programs in there.
>
> ~eric

Very true but in this specific case it is superfluous.

With the sample command given, the PATH will not be searched at all as 
all executables are accessed via their directory path.

But you are correct with the warning. People do this solely and only 
because Windows does it and some folk are used to it. But WE all know 
that Windows is brain-dead :-)

Kids, don't try this at home and dream up false reasons to put . in your 
PATH

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to