From dd45ce8c5e7ecfccfb7c954501f09100f8f8eb37 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 12 Jul 2012 04:44:21 -0300 Subject: [PATCH] gencat/libs.c (add_libdir): ignore files with a ~ in their name This makes us skip the fped backups. --- gencat/libs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gencat/libs.c b/gencat/libs.c index 00bd21f..8ae3c7b 100644 --- a/gencat/libs.c +++ b/gencat/libs.c @@ -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;