X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Ftools.c;h=16246593b8b7561534df56f7eb7cd533f884c8b0;hp=d27db719e973034183a8fb7a5e837b2a481cf6e7;hb=7f63d84eb712c54c57c3d4e9a92ffefe2f1b2ade;hpb=63bceea014e091a2f2907e49f7c3b33f042106f4 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);