diff --git a/plugins/modules-load.c b/plugins/modules-load.c index f32a96b4..efd691aa 100644 --- a/plugins/modules-load.c +++ b/plugins/modules-load.c @@ -85,6 +85,9 @@ static void load(void *arg) int index = counter; char line[256]; + if (d->d_name[strlen(d->d_name) - 1] == '~') + continue; /* skip backup files */ + strlcpy(module_path, MODULES_LOAD_PATH "/", sizeof(module_path)); strlcat(module_path, d->d_name, sizeof(module_path));