]> thyrsus.com Git - comparator.git/commitdiff
Ignore backup files.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 3 Sep 2003 06:10:41 +0000 (06:10 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 3 Sep 2003 06:10:41 +0000 (06:10 +0000)
shredtree.c

index fd780dd93f68f9d2713772d1945bc13c542143cc..0113bcb0ee9a6003ef812486a7127bd96afceb1d 100644 (file)
@@ -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