X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fnamespacize.c;h=545b28bb1a4f7d2dcd138b9a4fe9325907b81502;hp=77269aac317dac5a4d7c7b319aa794472739f116;hb=0473813acdfad62221ec9f2b9b41bc10d1f4586d;hpb=747a69435d9f83c0968d9689c4951bc0233ffc5e diff --git a/tools/namespacize.c b/tools/namespacize.c index 77269aac..545b28bb 100644 --- a/tools/namespacize.c +++ b/tools/namespacize.c @@ -406,7 +406,7 @@ static void setup_adjust_files(const char *dir, static void rename_files(const struct adjusted *adj) { while (adj) { - if (rename(adj->tmpfile, adj->file) != 0) + if (!move_file(adj->tmpfile, adj->file)) warn("Could not rename over '%s', we're in trouble", adj->file); adj = adj->next;