Commit Graph

89 Commits

Author SHA1 Message Date
joerg 43d0646972 Don't check for __attribute__ being defined, it won't. Check for GCC 3.x
or compatible and define BOZO_PRINTFLIKE / BOZO_DEAD. Fix fallout.
2011-08-27 15:33:59 +00:00
hannken 0456a9b514 Fix typo. 2011-08-21 10:45:33 +00:00
christos 2ead252a82 use const char [] for format. 2011-08-21 09:03:20 +00:00
christos a96758e4b9 XXX: gcc avoid non-literal strings 2011-08-14 11:38:11 +00:00
jmmv 9ef6767558 List myself as a contributor. 2011-04-24 07:18:59 +00:00
jmmv 94a4f45f78 Remove the "This option..." sentence prefix for all option definitions.
Adjust some sentences so that the new text makes sense.  OK mrg@.
2011-04-24 07:17:02 +00:00
mbalmer 17ab36f183 fix typo, bump date 2011-04-02 07:44:15 +00:00
mrg a45221975c add .mp4 as video/mp4. 2011-03-31 01:19:37 +00:00
jmmv 83bb438905 Add pid file support: if the new -P option is provided, it specifies the
location of the pid file to create.

OKed by mrg@.
2011-03-29 07:22:31 +00:00
reed 728c26c193 A filename with a colon in it made it appear to be the URI scheme
to various web browsers. So follow RFC 3986 4.2 and prepend ./
to the filename in the generated index hyperlink.

Okayed by mrg.
2011-03-10 14:39:40 +00:00
reed 92d8a7ba74 Fix typo. 2011-03-10 14:37:16 +00:00
pooka eb725c2168 Call daemon() later to make sure there is a listening socket by
the time the foreground process exits.

discussed with mrg.
2011-02-06 19:00:53 +00:00
pooka 09159e5c0a Make sure bozo_auth_check_401() isn't called with a NULL "request".
reviewed by mrg
2011-01-12 19:29:24 +00:00
tls eaa351b215 When invoking a content handler specified via -C, set the REDIRECT_STATUS
CGI variable to "200".  This approximates the Apache behavior which is
required by phpcgi in PHP 5.3 (and by some compilations of older PHP
versions).

I have a revolutionary idea.  Perhaps instead of imposing bizarre
requirements on other programs in the name of "security", the PHP
developers should make their own code compile with oh, I don't know,
maybe -Wuninitialized.  That might have an effect on the security of
systems using PHP rather than on the "security" of such systems...

...excuse me, got to go now, I think my airquotes just wore out.
2010-12-14 13:27:39 +00:00
wiz 8d65c98f7a Fix typo. 2010-09-21 07:05:28 +00:00
mrg df5be5736c merge bozohttpd 20100920 2010-09-20 23:11:38 +00:00
mrg 729c374954 initial import of bozohttpd 20100920. the only change missing in here is:
o  fix dynamic CGI content maps, from rudolf
2010-09-20 23:07:21 +00:00
mrg 44128f48a9 fix an error in the previous. 2010-09-20 22:18:22 +00:00
mrg 109d4102cc fix a serious error in virtual hosting support, noticed by seanb@netbsd,
and disallow ".." as a virtual host name!  also ".".

patch from sean.
2010-09-20 21:58:43 +00:00
mrg e0a4d05008 fix another compile error if NO_DAEMON_MODE is defined. also from rudolf. 2010-09-09 04:41:49 +00:00
mrg f3a95c474f fix a compile error if NO_DIRINDEX_SUPPORT is defined. from rudolf. 2010-09-08 00:47:44 +00:00
dogcow 172b076ece ...and free() memory malloc()ed by scandir so we don't leak. 2010-08-16 18:32:44 +00:00
dogcow 035f1ce17b readdir -> scandir and requisite changes, so that bozohttpd now sorts
directory listings.
2010-08-16 10:00:56 +00:00
mrg ee1ac2b96d avoid an unused variable warning(error) for MKCRYPTO=no builds. 2010-07-11 03:13:08 +00:00
wiz 88b9c8a3fe Fix typo, remove trailing whitespace. 2010-06-22 07:00:12 +00:00
mrg 30539536b5 merge bozohttpd 20100621 2010-06-22 05:24:12 +00:00
mrg aeb27ed42c merge bozohttpd 20100617. 2010-06-17 19:43:30 +00:00
mrg 1fe1233e27 merge bozohttpd 20100512 2010-05-15 06:48:27 +00:00
mrg d4586f7382 merge 20100510 properly 2010-05-10 14:53:17 +00:00
mrg a07e0db33b merge bozohttpd 20100510. 2010-05-10 14:44:19 +00:00
mrg ce2063081a merge bozohttpd 20100509. 2010-05-10 03:37:45 +00:00
mrg 390458fa54 import bozohttpd 20100509. it has these changes:
o  major rework and clean up of internal interfaces.  move the main
   program into main.c, the remaining parts are useable as library.
   add bindings for lua.  by Alistair G. Crooks <agc@netbsd.org>
o  fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325


special thanks to al for the majority of these changes.
2010-05-10 03:30:04 +00:00
mbalmer 124961627e s/the the/the/ 2009-11-22 18:40:26 +00:00
agc 96b6b6617b Re-add two files necessary for the testsuite to run properly. 2009-11-05 07:46:10 +00:00
joerg 33d938a5e5 Do not indent global variables. 2009-11-04 18:32:27 +00:00
agc ac9efee5f2 Plug a memory leak for ssl-protected formatted output 2009-11-04 15:37:39 +00:00
wiz 81ea280bf2 Sort options in SYNOPSIS. 2009-05-23 20:26:18 +00:00
mrg 4157d76654 fix a new -Wsign-compare bug. 2009-05-23 08:26:26 +00:00
mrg 67eebf838c fix a merge botch in previous 2009-05-23 06:45:28 +00:00
mrg c6e75af28a merge bozohttpd 20090522 2009-05-23 02:26:03 +00:00
mrg 36a7970f3c import bozohttpd 20090522, which has these changes:
o  close more leaking file descriptors for CGI and daemon mode
	o  add subdirs for build "debug" and "small" versions
	o  clean up a bad merge / duplicate code
	o  make mmap() usage portable, fixes linux & ranges: support
	o  document the -f option
	o  daemon mode now serves 6 files per child
2009-05-23 02:21:19 +00:00
mrg 68b1f14092 oops. these files should never have made it in here. 2009-04-19 21:43:44 +00:00
mrg bbbdac0a6f merge bozohttpd 20090418. remove a couple of minor do-nothing local
changes that don't need to cause conflicts.
2009-04-18 21:22:03 +00:00
mrg 5de1fbc2cb import bozohttpd 20090418. changes include:
o  avoid dying in daemon mode for some uncommon, but recoverable, errors
o  close leaking file descriptors for CGI and daemon mode
o  handle poll errors properly
o  don't try to handle more than one request per process yet

this covers PR#38489 and PR#40079, as well some some issues reported
privately.
2009-04-18 21:09:40 +00:00
wiz 98d3964304 Remove duplicate part (pasto?). Remove trailing whitespace.
Use Aq where easily possible.
2009-04-18 12:35:51 +00:00
mrg 74dbf40e6b re-add a lot of the distribution files 2009-04-18 07:48:02 +00:00
mrg f32af62cb7 return a value when the function wants to. 2009-04-18 07:38:40 +00:00
mrg ca01226b20 de-const some variables passed to free(). 2009-04-18 07:37:08 +00:00
mrg 033876329d merge bozohttpd 20090417 2009-04-18 07:28:24 +00:00
mrg 8033ac319d import latest bozohttpd sources. changes include:
o  make bozohttpd internally more modular, preparing the way
           to handle more than one request per process
        o  fix http-auth, set $REMOTE_USER not $REMOTEUSER.  also fix
           cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
        o  fix an uninitialised variable use in daemon mode
        o  fix ssl mode with newer OpenSSL
        o  mmap large files in manageable sizes so we can serve any size file
        o  refactor url processing to handle query strings correctly for CGI
           from Sergey Katsev at Coyote Point
        o  add If-Modified-Since support, from Joerg Sonnenberger
           <joerg@netbsd.org>
        o  many more manual fixes, from NetBSD
2009-04-18 07:09:27 +00:00