Ethereal-dev: Re: [ethereal-dev] plugin weirdness

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Olivier Abad <abad@xxxxxxxxxxxxx>
Date: Mon, 31 Jan 2000 07:59:35 +0100
On dim, jan 30, 2000 at 07:54:36 -0800, Guy Harris wrote:
> > In my case /products/ethereal/linux/lib/ethereal is the same as
> > /usr/local/lib/ethereal. 
> > 
> > Not sure if this is a legit complaint or not. I personally am not too
> > keen on it having /usr/local/lib hardwired, when I have specifically
> > configured a prefix.
> 
> Olivier, what was the rationale for searching
> "/usr/local/lib/ethereal/plugins/0.8" as well as PLUGIN_DIR?

I don't remember why we kept searching
/usr/local/lib/ethereal/plugins/0.8 when PLUGIN_DIR was introduced.

> Was it to allow people to put plugins into
> "/usr/local/lib/ethereal/plugins/0.8" even if they happened to install
> Ethereal elsewhere?
> 
> If searching both of those directories is useful, perhaps, instead of
> doing
> 
>         if ((strcmp(std_plug_dir, PLUGIN_DIR) != 0) &&
>             (strcmp(local_plug_dir, PLUGIN_DIR) != 0))
>         {
>           plugins_scan_dir(PLUGIN_DIR);
>         }
> 
> to search PLUGIN_DIR only if it's not the same directory as
> "/usr/lib/ethereal/plugins/0.8" or
> "/usr/local/lib/ethereal/plugins/0.8", it should do a "stat()" on
> those directories and compare the device and i-number to see if
> they're the same directory?

I'll try to do this tonight.

Olivier
-- 
A banker is a fellow who lends you his umbrella when the sun is shining
and wants it back the minute it begins to rain.
		-- Mark Twain