commit - 3065f08c041aa183200511b6371a883e945f3187
commit + ece731b025b35fd112ea1faebfabb163b61aacbe
blob - 30d239c18fcd5fcef9ecbdf30b78181cf9c03088
blob + 5248bb34c552d1020f0713b91affb6991385c95f
--- gotd/repo_write.c
+++ gotd/repo_write.c
} repo_tempfiles[3] = { { - 1, - 1 }, { - 1, - 1 }, { - 1, - 1 }, };
int i;
size_t datalen;
- struct imsgbuf ibuf;
struct got_ratelimit rl;
struct got_pack *pack = NULL;
off_t pack_filesize = 0;
if (client->pack_pipe == -1 || client->packidx_fd == -1)
return got_error(GOT_ERR_PRIVSEP_NO_FD);
-
- imsg_init(&ibuf, client->fd);
pack = &client->pack;
memset(pack, 0, sizeof(*pack));
}
tempfiles[i] = f;
}
-
- err = gotd_imsg_flush(&ibuf);
- if (err)
- goto done;
log_debug("receiving pack data");
unpack_err = recv_packdata(&pack_filesize, &nobj,
}
if (err)
got_pack_close(pack);
- imsg_clear(&ibuf);
return err;
}