Browse Source

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

Rusty Russell 15 years ago
parent
commit
0f66da713a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/tools.c

+ 1 - 1
tools/tools.c

@@ -235,7 +235,7 @@ char *maybe_temp_file(const void *ctx, const char *extension, bool keep,
 				    suffix, extension);
 				    suffix, extension);
 		talloc_free(suffix);
 		talloc_free(suffix);
 		suffix = talloc_asprintf(ctx, "-%u", ++count);
 		suffix = talloc_asprintf(ctx, "-%u", ++count);
-	} while (!keep && lstat(f, &st) == 0);
+	} while (lstat(f, &st) == 0);
 
 
 	if (tools_verbose)
 	if (tools_verbose)
 		printf("Creating file %s\n", f);
 		printf("Creating file %s\n", f);