plugins/python/python_plugin_common: raise debug level for module import

This commit is contained in:
Robert Manner
2020-01-07 17:17:49 +01:00
committed by Todd C. Miller
parent 8eab169098
commit 5be81eb25b

View File

@@ -83,7 +83,7 @@ _import_module(const char *path)
{ {
debug_decl(_import_module, PYTHON_DEBUG_PLUGIN_LOAD); debug_decl(_import_module, PYTHON_DEBUG_PLUGIN_LOAD);
sudo_debug_printf(SUDO_DEBUG_INFO, "importing module: %s\n", path); sudo_debug_printf(SUDO_DEBUG_DIAG, "importing module: %s\n", path);
char path_copy[PATH_MAX]; char path_copy[PATH_MAX];
if (strlcpy(path_copy, path, sizeof(path_copy)) >= sizeof(path_copy)) if (strlcpy(path_copy, path, sizeof(path_copy)) >= sizeof(path_copy))