mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-23 14:19:53 +02:00
gencat/libs.c (add_libdir): ignore files with a ~ in their name
This makes us skip the fped backups.
This commit is contained in:
parent
8562ad2204
commit
dd45ce8c5e
@ -95,6 +95,8 @@ void add_libdir(struct lib *lib, const char *path)
|
|||||||
de = readdir(dir);
|
de = readdir(dir);
|
||||||
if (!de)
|
if (!de)
|
||||||
break;
|
break;
|
||||||
|
if (strchr(de->d_name, '~'))
|
||||||
|
continue;
|
||||||
len = strlen(de->d_name);
|
len = strlen(de->d_name);
|
||||||
if (len < 4)
|
if (len < 4)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user