]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/build.c
Fix Joey's report of rename failing across moint points.
[ccan] / tools / ccanlint / compulsory_tests / build.c
index e3f96d7d62c6c28b79e8a2f8b5bdd7f476b79725..d2b22ac5ef51726cc2c06c14d97b19239d1e6e5e 100644 (file)
@@ -46,7 +46,7 @@ static void *do_build(struct manifest *m)
        if (filename) {
                char *realname = talloc_asprintf(m, "%s.o", m->dir);
                /* We leave this object file around, all built. */
-               if (rename(filename, realname) != 0)
+               if (!move_file(filename, realname))
                        return talloc_asprintf(m, "Failed to rename %s to %s",
                                               filename, realname);
                return NULL;