From: Eric S. Raymond Date: Wed, 3 Sep 2003 06:10:41 +0000 (+0000) Subject: Ignore backup files. X-Git-Tag: 1.0~46 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=43007d423125e3e0cc273d1b26f49b3bc9f53b73;p=comparator.git Ignore backup files. --- diff --git a/shredtree.c b/shredtree.c index fd780dd..0113bcb 100644 --- a/shredtree.c +++ b/shredtree.c @@ -41,7 +41,7 @@ static int eligible(const char *file) #define endswith(suff) !strcmp(suff, file + strlen(file) - strlen(suff)) if (endswith(".c") || endswith(".h") || endswith(".html")) return(1); - else if (endswith(".o")) + else if (endswith(".o") || endswith("~")) return(0); #undef endswith else