Use RTLD_LAZY instead of RTLD_NOW; was using RTLD_NOW as a debugging aid.
This commit is contained in:
@@ -99,7 +99,7 @@ group_plugin_load(char *plugin_info)
|
||||
}
|
||||
|
||||
/* Open plugin and map in symbol. */
|
||||
group_handle = dlopen(path, RTLD_NOW);
|
||||
group_handle = dlopen(path, RTLD_LAZY);
|
||||
if (!group_handle) {
|
||||
warningx("unable to dlopen %s: %s", path, dlerror());
|
||||
return -1;
|
||||
|
@@ -157,7 +157,7 @@ sudo_load_plugins(const char *conf_file,
|
||||
errorx(1, "%s must be only be writable by owner", path);
|
||||
|
||||
/* Open plugin and map in symbol */
|
||||
handle = dlopen(path, RTLD_NOW);
|
||||
handle = dlopen(path, RTLD_LAZY);
|
||||
if (!handle)
|
||||
errorx(1, "unable to dlopen %s: %s", path, dlerror());
|
||||
plugin = dlsym(handle, info->symbol_name);
|
||||
|
Reference in New Issue
Block a user