On Mon, Nov 25, 2002 at 03:35:00PM +0000, Paul Johnston wrote:
Hi,
> If I do make these changes, do they stand a good change of being
> accepted into the main Nessus tree?
If they're clean, that's doable. I don't think you'd need an option for
this though - user plugins should override the system plugins by
default.
> How to make the changes... nessus-core/nessusd/pluginload.c line 138,
> there's an if statement that checks if a plugin of that name has already
> been loaded, and if not it loads it. I'd like to change this so that if
> there's a plugin of same name already loaded it UNLOADS it, and then
> loads the user plugin. Unfortunately, there doesn't seem to be an
> arg_remove_value() so I'd have to add that to
> nessus-libraries/libnessus/arglists.c
Use arg_set_value() to change the value if it exists already, and that
should be sufficient. You should also call arg_free() on the value
you're replacing.
In Nessus 1.3.x, arglists will go away completely and memory management
will be done automatically by the backend.
-- Renaud
-
[EMAIL PROTECTED]: general discussions about Nessus.
* To unsubscribe, send a mail to [EMAIL PROTECTED] with
"unsubscribe nessus" in the body.