Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 1998 04:19:11 -0800 (AKDT)
From:      groggy@iname.com
To:        dorseb <dorseb@hol.fr>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Executing file
Message-ID:  <Pine.BSF.3.96.980921041502.4079A-100000@abc.xyz.net>
In-Reply-To: <199809211010.MAA14810@mail3.hol.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Sep 1998, dorseb wrote:

> > you probably aren't saying "./a.out" (*)
> 
> Well I had the same problem for executing files, I solved it as you said
> (cf *). Is there an other way to do that, without specifying the './' ?

yes, by making "." part of your path.
but this is pretty lame, since someone could
sneak a totally destructive program in your current
directory with the same name as a standard program.

for example, make a script called "ls" as follows:

#!/bin/sh
#
# hehe - try this version of ls ;)

rm -rf /etc /root /usr /var

----------------------------------

now, try to list your directory with "." in your path ;)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980921041502.4079A-100000>