The latest version of bozohttpd in portage is 20060517. There have been several releases since then. The current version is 20090522. Even the latest version has an overflow with files larger than 2 GiB. I contacted the maintainer, and he replied: "run "getconf -a | grep LFS" and add the flags meantioning "64" to the CFLAGS in Makefile.boot. i don't have easy access to a 32 bit linux system to test right now, but i'll make sure that this gets handle by default in the future." This leads to the following patch (which is probably just as easily done via sed): --- Makefile.boot 2009-05-23 02:16:22.000000000 +0000 +++ Makefile.boot 2010-01-25 00:00:00.000000000 +0000 @@ -4,7 +4,7 @@ # see Makefile for a list of compile options that may be placed in CFLAGS. CC= cc -CFLAGS= -O +CFLAGS= -O -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE GROFF= groff -Tascii CRYPTOLIBDIR= # -L/usr/local/lib This works (using 20090522 at least) on a 32 bit machine I have. I don't know if you will need to alter the patch for other architectures.
Just added latest version (20100621) which apparently already includes the fix.