[bf1942] Getting the server to run
ScratchMonkey
ScratchMonkey at SewingWitch.com
Sat Dec 14 15:07:20 EST 2002
--On Saturday, December 14, 2002 7:37 PM +0100 Malte Schröder
<TuX.Norad at gmx.de> wrote:
> assuming you are in the bf1942...-directory, then you have to type
> ./bf1942_lnxded
> because ./ (your current directory) is not in the search-path for
> executables by default (at least on debian)
And this is Working As Designed. You don't *want* "." in your path, because
you might cd to some luser's directory who has a trojaned "ls" there, and
you don't want to accidentally run it. So on all properly-configured *nix
systems, you must type the "./" if you really want to run a program in the
current directory.
Furthermore, when writing scripts, try to use full paths to programs to
insure that the script runs the *right* program. This will prevent the
script from using aliases or undesired programs found because the script
was run with a strange PATH. This is especially important for any script
that root might run, such as those used during booting.
More information about the Bf1942
mailing list