On Mon, Dec 31, 2001 at 10:59:40AM +0200, Peter Pentchev wrote:
> 
> Okay, so it's not documented in the manual, but one look at the source
> should suffice :)
> 
> As Mike said, there is a search path.  However, the current directory
> is tried first.  If a file by that name is not found in the current
> directory, the search path is, well, searched ;)  The search path
> is available in the kern.module_path sysctl or in the output of
> 'kldconfig -r'.
> 
> This is similar to what shells have been doing for decades, with
> the added feature of an implicit '.' at the start of the search path.

*oof*

Don't know what I was thinking.

There is NO implicit '.'.  There is NO searching the current
directory first.  Only the kern.modules_path search path is used.
This explains why your last case - cd("/tmp"); kldload("procfs"); -
does not work.

If you specify the full path, though, that is tried first before
the search path.

G'luck,
Peter

-- 
The rest of this sentence is written in Thailand, on

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to