mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
plugins: skip backup files in modules-load plugin
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user