1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 10:28:59 +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:
Werner Almesberger 2012-07-12 04:44:21 -03:00
parent 8562ad2204
commit dd45ce8c5e

View File

@ -95,6 +95,8 @@ void add_libdir(struct lib *lib, const char *path)
de = readdir(dir);
if (!de)
break;
if (strchr(de->d_name, '~'))
continue;
len = strlen(de->d_name);
if (len < 4)
continue;