projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
904cfe9
)
ccanlint: rename files on collision even with keep=true.
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 7 Oct 2010 02:43:26 +0000
(13:13 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 7 Oct 2010 02:43:26 +0000
(13:13 +1030)
tools/tools.c
patch
|
blob
|
history
diff --git
a/tools/tools.c
b/tools/tools.c
index d27db719e973034183a8fb7a5e837b2a481cf6e7..16246593b8b7561534df56f7eb7cd533f884c8b0 100644
(file)
--- 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);
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);
if (tools_verbose)
printf("Creating file %s\n", f);