afe5858c74
- Add a patch for CVE-2005-3124 (courtesy of Red Hat?) - By default thttpd doesn't respect (or pass on) the X-Forwarded-For header; use a patch [1] that puts X-Forwarded-For into Remote-Addr, but not enable it just yet - Amend COMMENT, improve pkg-message, sort the knobs in Makefile, and reformat port description text for better readability while here [1] http://wiki.nginx.org/ThttpdRealIP
18 lines
669 B
Text
18 lines
669 B
Text
--- extras/syslogtocern.orig 2005-06-29 19:50:23.000000000 +0200
|
|
+++ extras/syslogtocern 2008-09-25 10:42:27.000000000 +0200
|
|
@@ -31,8 +31,8 @@ if [ $# -lt 1 ] ; then
|
|
exit 1
|
|
fi
|
|
|
|
-tmp1=/tmp/stc1.$$
|
|
-rm -f $tmp1
|
|
+tmp1=`mktemp -t stc1.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
|
|
+trap "[ -f \"$tmp1\" ] && /bin/rm -f -- \"$tmp1\"" 0 1 2 3 13 15
|
|
|
|
# Gather up all the thttpd entries.
|
|
egrep -h ' thttpd\[' "$@" > $tmp1
|
|
@@ -65,4 +65,3 @@ awk < $tmp1 '{if ( ! ( NF >= 15 && $7 ==
|
|
sed -e "s,\([A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\) [^ ]* thttpd\[[0-9]*\]: \(.*\),[\1 ${year}] \2," > error_log
|
|
|
|
# Done.
|
|
-rm -f $tmp1
|