ccanlint: rename files on collision even with keep=true.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Oct 2010 02:43:26 +0000 (13:13 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Oct 2010 02:43:26 +0000 (13:13 +1030)
tools/tools.c

index d27db719e973034183a8fb7a5e837b2a481cf6e7..16246593b8b7561534df56f7eb7cd533f884c8b0 100644 (file)
@@ -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);