Logged more information when a plugin could not be loaded

Put the explanation from dlerr() into the syslog when a plugin could
not be loaded.
This commit is contained in:
Jean-Pierre André 2017-02-11 09:15:33 +01:00
parent 2eb5052480
commit fa0a7a5686

View File

@ -835,10 +835,12 @@ const struct plugin_operations *select_reparse_plugin(ntfs_fuse_context_t *ctx,
if (!ops)
dlclose(handle);
} else {
if (!(ctx->errors_logged & ERR_PLUGIN))
if (!(ctx->errors_logged & ERR_PLUGIN)) {
ntfs_log_perror(
"Could not load plugin %s",
name);
ntfs_log_error("Hint %s\n",dlerror());
}
ctx->errors_logged |= ERR_PLUGIN;
}
}