[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-security
Subject:    Re: Kernel Panic
From:       Leon Breedt <ljb () devco ! net>
Date:       2001-06-25 8:29:18
[Download RAW message or body]

On Sun, Jun 24, 2001 at 02:01:34AM -0700, Ted Mittelstaedt wrote:
> That would be impossible unless you had "." in your path.  If
> you did (which is a very BAD thing) then yes your script probably
> loaded itself (assuming you named it "pine).  This is why the
> system defaults to NOT having "." in the path.

I'm not sure if everyone's aware of this (I wasn't), but an
empty colon in your PATH is an implicit . (!!)

i.e. PATH=/bin:/usr/bin:/usr/local/bin:

In sh(1):

     2.   The shell searches each entry in PATH in turn for the command.  The
          value of the PATH variable should be a series of entries separated
          by colons.  Each entry consists of a directory name.  The current
          directory may be indicated implicitly by an empty directory name, or
          explicitly by a single period.

Regards,

Leon.

-- 
lj breedt
coder

"Threads are for people who can't program state machines."

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic