summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* - tagged lighttpd 1.4.39lighttpd-1.4.39stbuehler2016-01-020-0/+0
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/tags/lighttpd-1.4.39@3067 152afb58-edef-0310-8abb-c4023f1b3aa9
* [scons] fix fullstatic buildstbuehler2015-12-191-6/+52
| | | | | | | | | | | | | | | | - scons searches the dynamic libs to find all dependencies to link against in the static link: - now use the system search path (ld --verbose) instead of some hardcoded list - remove duplicates from the list (all but the last) to avoid linker errors - use custom WhereIsFile function instead of env.WhereIs to find not-executable files too - only write 'plugin-static.h' if it actually changes From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3066 152afb58-edef-0310-8abb-c4023f1b3aa9
* [chunk] fix use after free / double free (fixes #2700)stbuehler2015-12-192-0/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3065 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] fix memset_s call (fixes #2698)stbuehler2015-12-182-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3064 152afb58-edef-0310-8abb-c4023f1b3aa9
* - next ist 1.4.39stbuehler2015-12-054-4/+6
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3063 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] show correct crypt support result (fixes #2690)stbuehler2015-12-042-1/+2
| | | | | | | | | | | | | If the crypt function is available as part of the standard system library, then HAVE_LIBCRYPT will not be set, but HAVE_CRYPT or HAVE_CRYPT_R will. Make server.c test HAVE_CRYPT, HAVE_CRYPT_R and HAVE_LIBCRYPT to determine the correct value of crypt support. Signed-off-by: Kyle J. McKay git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3061 152afb58-edef-0310-8abb-c4023f1b3aa9
* [network] add darwin-sendfile backend (fixes #2687)stbuehler2015-12-047-3/+78
| | | | | | | | | | | | | | | | | | | The FreeBSD version of sendfile is already supported. Starting with OS X 10.5, Darwin also supports sendfile, but using a slightly different argument list even though much of the implementation is likely taken from FreeBSD just like the man page is. Add support for darwin's sendfile by introducing a new network_darwin_sendfile.c file that's just a copy of the network_freebsd_sendfile.c file except with the arguments adjusted to compensate for the minor API difference (FreeBSD has separate in and out byte count arguments whereas Darwin has a combined in/out byte count argument). Signed-off-by: Kyle J. McKay <mackyle@gmail.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3060 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_fastcgi/mod_scgi] zero sockaddr structs before use (fixes #2691)stbuehler2015-12-043-8/+9
| | | | | | | | | | | | | | | When a sockaddr_un, sockaddr_in or sockaddr_in6 structure is allocated on the stack or heap, it may contain random byte values. The "unused" and "reserved" parts must be zerod otherwise unexpected failures may occur. The simplest way to do this and be compatible with various platforms' struct layouts is just to memset them to 0. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3059 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] do not half-close socket before having received the response (fixes ↵stbuehler2015-12-041-1/+0
| | | | | | | | #2688) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3058 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] test apr-md5 in mod-auth.tstbuehler2015-12-042-4/+22
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3057 152afb58-edef-0310-8abb-c4023f1b3aa9
* mod-auth.t: no crypt md5 for darwinstbuehler2015-12-041-0/+1
| | | | | | | | Darwin's crypt does not support the '$...' extensions. Signed-off-by: Kyle J. McKay git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3056 152afb58-edef-0310-8abb-c4023f1b3aa9
* [autobuild] fix missing header in tar ballstbuehler2015-11-221-1/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3055 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_secdownload] add required algorithm option; old behaviour available as ↵stbuehler2015-11-2210-337/+678
| | | | | | | | | | "md5", new options "hmac-sha1" and "hmac-sha256" Differential Revision: https://review.lighttpd.net/D7 From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3054 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] refactor base64 functions into separate filestbuehler2015-11-226-132/+265
| | | | | | | | Differential Revision: https://review.lighttpd.net/D6 From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3053 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] encode path with ENCODING_REL_URI in redirect to directory (fixes ↵stbuehler2015-11-074-41/+59
| | | | | | | | #2661, thx gstrauss) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3052 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] add '~' to safe characters in ENCODING_REL_URI/ENCODING_REL_URI_PART ↵stbuehler2015-11-072-4/+5
| | | | | | | | encoding From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3051 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] revert increase of temp file size back to 1MB, provide a configure ↵stbuehler2015-11-076-10/+27
| | | | | | | | option "server.upload-temp-file-size" instead (fixes #2680) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3050 152afb58-edef-0310-8abb-c4023f1b3aa9
* [config] check config option scope; warn if server option is given in ↵stbuehler2015-11-0738-199/+243
| | | | | | | | conditional From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3049 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_secdownload] use a hopefully constant time comparison to check hash ↵stbuehler2015-10-272-1/+12
| | | | | | | | (fixes #2679) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3048 152afb58-edef-0310-8abb-c4023f1b3aa9
* add force_assert for many allocations and function resultsstbuehler2015-10-164-1/+26
| | | | | | From: Gaurav <g.gupta@samsung.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3047 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] don't buffer request bodies smaller than 64k on diskstbuehler2015-10-132-1/+6
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3046 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_auth] implement and use safe_memclear, using memset_s or explicit_bzero ↵stbuehler2015-09-2612-181/+310
| | | | | | | | if available From: Loganaden Velvindron <logan@elandsys.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3045 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] check configparserAlloc() result with force_assertstbuehler2015-09-262-0/+2
| | | | | | From: Gaurav <g.gupta@samsung.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3044 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] fix search for header end if split across chunks (fixes #2670)stbuehler2015-09-242-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3043 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] allocate at least 4k buffer for incoming datastbuehler2015-09-242-2/+4
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3042 152afb58-edef-0310-8abb-c4023f1b3aa9
* [stat-cache] fix handling of collisions, might have returned wrong data ↵stbuehler2015-09-162-54/+50
| | | | | | | | | | | | | | | | | | | | | (fixes #2669) - don't remember splay_tree nodes for long (dir_node, file_node) after cache lookup; only remember the data they pointed to (sce for file entries, fam_node for dir entries) - unset sce / fam_node when a collision (not matching path) is detected - check again for collision before splaytree_insert; the entry in question is already at the top because it was splayed before. simply replace the data on collisions (and release the old data). - check fam_node for collisions too - splaytree_size handles NULL nodes too - enable some force_assert lines (were in #ifdef DEBUG_STAT_CACHE before) Differential Revision: https://review.lighttpd.net/D1 From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3039 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix packdist.sh output linksstbuehler2015-09-151-3/+6
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3038 152afb58-edef-0310-8abb-c4023f1b3aa9
* -next is 1.4.38stbuehler2015-09-154-4/+6
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3037 152afb58-edef-0310-8abb-c4023f1b3aa9
* packdist.sh: use fakeroot for make dist to have root owned files in tarstbuehler2015-08-301-1/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3035 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix some warnings found by coverity ("leak" in setup phase, not catching too ↵stbuehler2015-08-303-3/+13
| | | | | | | | long unix socket paths in mod_proxy) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3034 152afb58-edef-0310-8abb-c4023f1b3aa9
* [scons] fix buildstbuehler2015-08-291-2/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3033 152afb58-edef-0310-8abb-c4023f1b3aa9
* [scons] fix crypt() detection, other improvementsstbuehler2015-08-292-32/+42
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3032 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mmap] handle SIGBUS in network; those get triggered if the file gets ↵stbuehler2015-08-292-2/+42
| | | | | | | | smaller during reading From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3031 152afb58-edef-0310-8abb-c4023f1b3aa9
* [scons] various improvementsstbuehler2015-08-295-116/+213
| | | | | | | | | | | | | | - don't generate files in src/ - move all build stuff to sconsbuild/ - have different output directories for static/ and fullstatic/, so we can use that directory for the test suite - each build type (dynamic, static, fullstatic) has its own check target - read CFLAGS, LDFLAGS and LIBS from environment (LIBS are appended after all other dependencies) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3030 152afb58-edef-0310-8abb-c4023f1b3aa9
* [plugins] when modules are linked statically still only load the modules ↵stbuehler2015-08-294-60/+132
| | | | | | | | | | | | | given in the config - previously it would load all modules in some fixed order - also warn when mod_magnet or mod_trigger_b4_dl are compiled without needed dependencies - mod_trigger_b4_dl fails in plugin_init when dependencies are missing From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3029 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mmap] fix mmap alignmentstbuehler2015-08-234-7/+21
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3028 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_cgi] rewrite mmap and generic (post body) send error handlingstbuehler2015-08-232-54/+120
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3027 152afb58-edef-0310-8abb-c4023f1b3aa9
* [build] put --as-needed into linker flags instead of cflagsstbuehler2015-08-232-6/+25
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3026 152afb58-edef-0310-8abb-c4023f1b3aa9
* small README for FreeBSD build setupstbuehler2015-08-232-1/+52
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3025 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_dirlisting] remove sys/syslimits.h; base.h already includes limits.hstbuehler2015-08-235-28/+19
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3024 152afb58-edef-0310-8abb-c4023f1b3aa9
* [bsd xattr] fix compile break with BSD extended attributes in stat_cachestbuehler2015-08-222-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3023 152afb58-edef-0310-8abb-c4023f1b3aa9
* [autoconf] define HAVE_CRYPT when crypt() is presentstbuehler2015-08-222-0/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3022 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] fix warning about newline in filenamestbuehler2015-08-221-0/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3021 152afb58-edef-0310-8abb-c4023f1b3aa9
* [kqueue] fix kevent callstbuehler2015-08-222-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3020 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] search for perl in PATH instead of /usr/bin; whitespace + test ↵stbuehler2015-08-2229-1185/+1200
| | | | | | | | config cleanups From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3019 152afb58-edef-0310-8abb-c4023f1b3aa9
* [cmake] fix FreeBSD linker bugstbuehler2015-08-221-1/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3018 152afb58-edef-0310-8abb-c4023f1b3aa9
* [cmake] don't put date into config.h (not used anyway), only unset local ↵stbuehler2015-08-222-39/+37
| | | | | | | | vars for disabled features instead of clearing cache From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3017 152afb58-edef-0310-8abb-c4023f1b3aa9
* maintain cq->bytes_in in chunk API; keep bytes_out/bytes_in syncedstbuehler2015-08-227-150/+97
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3016 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix some unchecked return value warningsstbuehler2015-08-226-11/+63
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3015 152afb58-edef-0310-8abb-c4023f1b3aa9
* [cmake] cleanup cache variables if features get deactivatedstbuehler2015-08-222-19/+67
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3014 152afb58-edef-0310-8abb-c4023f1b3aa9