From lars.curator at gmail.com Sat Dec 5 19:29:05 2009 From: lars.curator at gmail.com (Lars Nooden) Date: Sat, 05 Dec 2009 20:29:05 +0200 Subject: December 2009 reminder - Manual pages for btcli, btpd, and btinfo Message-ID: <4B1AA671.8020103@gmail.com> I send some proposals for manual pages for btcli, btpd, btinfo: http://www-personal.umich.edu/~lars/OpenBSD/btcli.1.gz http://www-personal.umich.edu/~lars/OpenBSD/btpd.1.gz http://www-personal.umich.edu/~lars/OpenBSD/btinfo.1.gz They are for btpd-0.15 What would be the way to propose including them in the source package? The "btpd general discussion" list seems defunct. /Lars From per at computer.org Tue Dec 8 20:19:02 2009 From: per at computer.org (Per Jessen) Date: Tue, 08 Dec 2009 20:19:02 +0100 Subject: December 2009 reminder - Manual pages for btcli, btpd, and btinfo References: <4B1AA671.8020103@gmail.com> Message-ID: Lars Nooden wrote: > I send some proposals for manual pages for btcli, btpd, btinfo: > > http://www-personal.umich.edu/~lars/OpenBSD/btcli.1.gz > http://www-personal.umich.edu/~lars/OpenBSD/btpd.1.gz > http://www-personal.umich.edu/~lars/OpenBSD/btinfo.1.gz > > They are for btpd-0.15 > > What would be the way to propose including them in the source package? > The "btpd general discussion" list seems > defunct. > > /Lars Not defunct, just not very much used. You could try contacting btpd-users-owner at murmeldjur.se. /Per Jessen, Z?rich From zion at x96.org Wed Dec 23 22:27:23 2009 From: zion at x96.org (Aaron Stellman) Date: Wed, 23 Dec 2009 13:27:23 -0800 Subject: btpd patch Message-ID: <20091223212723.GB9392@x96.org> Hello btpd users, Recently, I've been getting assertion "count <= iob->off" failed: file "misc/iobuf.c", line 37, function "iobuf_consumed" in btpd-0.15. This has been happening on multiple OS.. (OpenBSD, FreeBSD). After investigating, i've come up with a fix, please be a judge of its correctness: --- misc/http_client.c.orig Mon Jan 12 14:43:18 2009 +++ misc/http_client.c Tue Dec 22 23:19:29 2009 @@ -230,6 +230,12 @@ again: else goto error; } + + /* req->rbuf.buf may be reallocated inside iobuf_write() + * so we should calculate the offset before that happens + */ + size_t consumed = end - (char *)req->rbuf.buf + dlen; + if (!iobuf_write(&req->rbuf, "", 1)) goto error; req->rbuf.off--; @@ -237,7 +243,7 @@ again: goto error; if (req->cancel) goto cancel; - iobuf_consumed(&req->rbuf, end - (char *)req->rbuf.buf + dlen); + iobuf_consumed(&req->rbuf, consumed); goto again; case PS_CHUNK_SIZE: assert(req->chunked);