Commit Graph

53 Commits

Author SHA1 Message Date
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
snj
4657fc1128 Fix typo in email address. Pointed out by Mirko Thiesen in PR 41229. 2009-04-16 21:26:57 +00:00
reinoud
ce5ceeea15 Fix redirection core dump as reported in PR#41042. 2009-03-23 12:49:28 +00:00
lukem
500db00274 Default to WARNS=4
Exceptions that need a lower level are:
	getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
	hpropd ipropd-master ipropd-slave kadmind kpasswdd
2009-03-16 02:24:55 +00:00
joerg
edbcd7c8fd Fix preamble 2009-03-11 13:39:33 +00:00
mrg
932fbc87d9 use SIMPLEQ_FOREACH_SAFE(), to avoid a use-after-free.
picked up by coverity.
2009-03-11 06:53:25 +00:00
tls
7184d23274 More CGI handling fixes from Sergey Katsev at Coyote Point.
1) Fix an issue where because of the reordering of transform_request
   and process_cgi, the cgi-script name was being cut off
   by one character (transform_request for some reason
   cuts off the leading '/' for the file name as part of its
   processing).  As an 'easy' fix, simply re-add the '/' to the
   front of the filename, which means that we don't have to
   mess with the logic that sometimes adds +1 and sometimes doesn't.

2) Work around ridiculous bug in PHP reported by lukem in 2004,
   but stubbornly never fixed by the PHP maintainers:

   Change the SCRIPT_NAME and SCRIPT_FILENAME variables
   to contain the file name only, not the query if one exists.
   Having the query in SCRIPT_FILENAME causes php-cgi to not
   work, as per the bug information here:
   	 http://bugs.php.net/bug.php?id=28227

3) Fix a memory leak because URL wasn't being freed.
2009-02-19 22:33:39 +00:00
joerg
7925dff4ee Add If-Modified-Since support. 2009-02-09 17:06:11 +00:00
tls
f0f7a44ff5 From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 .  There are two main changes here:

1) call process_cgi() after transform_request(), not before.  Now it is
   possible to have a default cgi handler catch a request for a path that
   was produced by transformation, e.g. by index generation -- so now the
   index can be "generated" by a CGI if that is what the user desires.

2) More clearly distinguish "file" from "query" portions of the request
   URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
   match filename extensions due to ?-suffixes, etc.

   After this change, there are only two cases which use the "query"
   portion of the request (the portion after the ?):

     a) A redirect issued by HTTPD will redirect to the new file, but
	with the same query string.

     b) process_cgi() will, of course continue to use the query string.
2009-02-04 22:55:58 +00:00
lukem
70d3d32311 fix -Wsign-compare issues 2009-01-18 00:36:20 +00:00
wiz
859dc97d79 Move all subsections to main DESCRIPTION, noted by John Nemeth. 2008-12-06 14:17:43 +00:00
wiz
b05af3b178 Fix some more mdoclint warnings.
Add commas in enumerations.
2008-12-06 13:30:35 +00:00
jnemeth
8c012591df add -t chrootdir to SYNOPSIS, mdoclint 2008-12-06 13:18:09 +00:00
mrg
ac1ceac37d pull across the fix from my master bozohttpd cvs tree for PR 38466. 2008-11-06 06:38:43 +00:00
reed
cb656a8c3e Fix spelling of my name. While here add my middle initial. 2008-09-13 14:00:34 +00:00
mlelstv
2e45fdea28 new openssl returns const method objects. 2008-05-10 19:25:20 +00:00
degroote
e20ddcfff5 slen must be initialized before the call to accept 2008-05-02 19:14:03 +00:00
christos
ffeec10260 warns=4 2008-04-25 17:34:38 +00:00
mrg
37b5177b06 fix a problem in %xy decoding. 2008-03-07 18:20:20 +00:00
mrg
2e2c24f48c merge bozohttpd 20080303 2008-03-03 22:30:34 +00:00
mrg
707281a285 merge bozohttpd 20080303 2008-03-03 22:15:08 +00:00
mrg
e1e74f372d import latest bozohttpd. changes include:
o  fix some cgi header processing, from <thelsdj@gmail.com>
	o  add simple Range: header processing, from <bad@bsd.de>
	o  man page fixes, from NetBSD
	o  clean up various parts, from NetBSD
	o  prefix some function names with "bozo"
	o  align directory indexing <hr> markers
	o  clean up some code GCC4 grumbled about
2008-03-03 22:03:08 +00:00
mrg
9240578f89 use BUILDSYMLINKS to not have to rename bozohttpd.8 while still
having this manual installed as httpd.8.  now updates from my
repo to bozohttpd.8 will appear in this file.
2008-03-03 03:10:53 +00:00
mrg
e972654d70 support MKCRYPTO=no:
- don't link -lssl -lcrypto
- -DNO_SSL_SUPPORT
2008-02-03 23:48:09 +00:00
perry
9dfe283011 remove cdefs.h at mrg's request 2007-12-16 02:38:24 +00:00
perry
36c7456d7c include sys/cdefs.h so that __attribute__ can be fixed later 2007-12-15 16:32:05 +00:00
rtr
3aa5278c3a - remove const from h_header, this pointer is occasionally free'd
- remove unused write_str var
+ move header parsing to new function separation of parsing vs processing
+ alter some variable names to avoid confusion between header value and
  header name (caused breakage with previous rev)
2007-11-04 15:20:11 +00:00
rtr
6dc1829962 + don't free strdup()'d ptr that was manipulated.
(i.e. free(): warning: modified (chunk-) pointer))
+ don't leak memory for ptr actually returned from strdup()
+ don't strdup() if we don't have to
+ don't break without free() if we did strdup()
+ as well as freeing h_value also free the header.
2007-11-04 06:07:52 +00:00
ad
bc89ba23ac Make the dir indexes less ugly (horizontal rules were out of place). 2007-10-18 18:53:59 +00:00
he
a9cf29f812 A build for sun2 reveals that we also need -lcrypt, as auth-bozo.c
otherwise gets an unsatisfied reference to crypt().
2007-10-18 17:43:02 +00:00
tls
18c80b6525 RCS IDs 2007-10-17 18:47:59 +00:00
tls
13d3c473b0 Fix two memory leaks noted by Coverity (CID-4694, CIT-4695) and use
SIMPLEQ_FOREACH where possible.  Patch from Arnaud Lacombe.
2007-10-17 18:43:46 +00:00
reed
15823ba9ad Document .htpasswd / HTTP "Basic" authentication support.
Update date of man page too.
2007-10-17 13:55:46 +00:00
reed
7c5821fbe4 Fix typo in EXAMPLES (unknown service).
While there mention inetd.conf(5) again (since in a new section of man page).
2007-10-17 13:33:18 +00:00
reed
dbfaed2362 Fix typo on Makefile which causes HTTP Authentication support
to not be used.

Now fix auth-bozo.c to not have warnings "may be used uninitialized"
and pointer targets "differ in signedness".
2007-10-17 13:27:19 +00:00
reed
ca8ed3ab02 Remove extra period. 2007-10-16 22:50:01 +00:00
tls
215e50961e Add httpd to the build. Add _httpd to passwd and groups and postinstall.
Add /var/www to mtree, add example line to inetd.conf.
2007-10-16 02:47:12 +00:00