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: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sun, 30 Jan 2000 19:54:36 -0800
> 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?

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?