mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
plugins: skip backup files in modules-load plugin
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
a5941165a0
commit
7f19474d8d
1 file changed
+3
@@ -85,6 +85,9 @@ static void load(void *arg)
|
|||||||
int index = counter;
|
int index = counter;
|
||||||
char line[256];
|
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));
|
strlcpy(module_path, MODULES_LOAD_PATH "/", sizeof(module_path));
|
||||||
strlcat(module_path, d->d_name, sizeof(module_path));
|
strlcat(module_path, d->d_name, sizeof(module_path));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user