Commit 0f66da71 authored by Rusty Russell's avatar Rusty Russell

ccanlint: rename files on collision even with keep=true.

parent 904cfe94
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment