Use RTLD_LAZY instead of RTLD_NOW; was using RTLD_NOW as a debugging aid.

This commit is contained in:
Todd C. Miller
2010-07-02 16:03:21 -04:00
parent 7e91ebff14
commit 17dbb33e57
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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);