From 0f66da713a750c995bb59452a95f4a71fdd8a58c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 7 Oct 2010 13:13:26 +1030 Subject: [PATCH 1/1] ccanlint: rename files on collision even with keep=true. --- tools/tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools.c b/tools/tools.c index d27db719..16246593 100644 --- a/tools/tools.c +++ b/tools/tools.c @@ -235,7 +235,7 @@ char *maybe_temp_file(const void *ctx, const char *extension, bool keep, suffix, extension); talloc_free(suffix); suffix = talloc_asprintf(ctx, "-%u", ++count); - } while (!keep && lstat(f, &st) == 0); + } while (lstat(f, &st) == 0); if (tools_verbose) printf("Creating file %s\n", f); -- 2.39.2