5d98a43e7e
- update to 2.26 (bnc#894285) Ignore ECONNABORTED on accept(). Correctly implemented the config-file option change from "nosymlink" to "nosymlinkcheck", which was supposedly done in version 2.24. Removed mailto: link from default index page. Allow CGIs to provide both Location and Status headers. Better logic for figuring out CGI SERVER_NAME environment variable. Updated for clang, and general cleanup. - dropped thttpd-2.25b-getline.patch (upstream) - added thttpd-crypt_is_in_crypt.h.patch OBS-URL: https://build.opensuse.org/request/show/247376 OBS-URL: https://build.opensuse.org/package/show/server:http/thttpd?expand=0&rev=24
107 lines
3.8 KiB
Diff
107 lines
3.8 KiB
Diff
Index: config.h
|
|
===================================================================
|
|
--- config.h.orig 2014-09-03 09:38:25.650677391 +0200
|
|
+++ config.h 2014-09-03 09:38:50.657956674 +0200
|
|
@@ -57,17 +57,7 @@
|
|
** as a security measure that's how you do it, just don't define any
|
|
** pattern here and don't run with the -c flag.
|
|
*/
|
|
-#ifdef notdef
|
|
-/* Some sample patterns. Allow programs only in one central directory: */
|
|
-#define CGI_PATTERN "/cgi-bin/*"
|
|
-/* Allow programs in a central directory, or anywhere in a trusted
|
|
-** user's tree: */
|
|
-#define CGI_PATTERN "/cgi-bin/*|/jef/**"
|
|
-/* Allow any program ending with a .cgi: */
|
|
-#define CGI_PATTERN "**.cgi"
|
|
-/* When virtual hosting, enable the central directory on every host: */
|
|
-#define CGI_PATTERN "/*/cgi-bin/*"
|
|
-#endif
|
|
+#define CGI_PATTERN "/cgi-bin/*|**.cgi"
|
|
|
|
/* CONFIGURE: How many seconds to allow CGI programs to run before killing
|
|
** them. This is in case someone writes a CGI program that goes into an
|
|
@@ -75,7 +65,7 @@
|
|
** or whatever. If you don't want any limit, comment this out, but that's
|
|
** probably a really bad idea.
|
|
*/
|
|
-#define CGI_TIMELIMIT 30
|
|
+#define CGI_TIMELIMIT 60
|
|
|
|
/* CONFIGURE: Maximum number of simultaneous CGI programs allowed.
|
|
** If this many are already running, then attempts to run more will
|
|
@@ -123,8 +113,8 @@
|
|
** You can also leave both options undefined, and thttpd will not do
|
|
** anything special about tildes. Enabling both options is an error.
|
|
*/
|
|
-#ifdef notdef
|
|
#define TILDE_MAP_1 "users"
|
|
+#ifdef notdef
|
|
#define TILDE_MAP_2 "public_html"
|
|
#endif
|
|
|
|
@@ -185,9 +175,7 @@
|
|
** measure, to prevent inadvertant exposure by accidentally running without -r.
|
|
** You can still disable it at runtime with the -nor flag.
|
|
*/
|
|
-#ifdef notdef
|
|
#define ALWAYS_CHROOT
|
|
-#endif
|
|
|
|
/* CONFIGURE: Define this if you want to always do virtual hosting, without
|
|
** having to give the -v command line flag. You can still disable it at
|
|
@@ -237,7 +225,7 @@
|
|
** initializing. If this user (or the one specified by the -u flag) does
|
|
** not exist, the program will refuse to run.
|
|
*/
|
|
-#define DEFAULT_USER "nobody"
|
|
+#define DEFAULT_USER "wwwrun"
|
|
|
|
/* CONFIGURE: When started as root, the program can automatically chdir()
|
|
** to the home directory of the user specified by -u or DEFAULT_USER.
|
|
@@ -276,7 +264,7 @@
|
|
|
|
/* CONFIGURE: $PATH to use for CGI programs.
|
|
*/
|
|
-#define CGI_PATH "/usr/local/bin:/usr/ucb:/bin:/usr/bin"
|
|
+#define CGI_PATH "/bin:/usr/bin"
|
|
|
|
/* CONFIGURE: If defined, $LD_LIBRARY_PATH to use for CGI programs.
|
|
*/
|
|
@@ -327,7 +315,7 @@
|
|
/* CONFIGURE: A list of index filenames to check. The files are searched
|
|
** for in this order.
|
|
*/
|
|
-#define INDEX_NAMES "index.html", "index.htm", "index.xhtml", "index.xht", "Default.htm", "index.cgi"
|
|
+#define INDEX_NAMES "index.html", "index.htm", "index.xhtml", "index.xht", "index.cgi"
|
|
|
|
/* CONFIGURE: If this is defined then thttpd will automatically generate
|
|
** index pages for directories that don't have an explicit index file.
|
|
Index: configure.in
|
|
===================================================================
|
|
--- configure.in.orig 2014-09-03 09:38:25.651677402 +0200
|
|
+++ configure.in 2014-09-03 09:38:50.657956674 +0200
|
|
@@ -6,8 +6,10 @@ AC_CANONICAL_SYSTEM
|
|
|
|
AC_PROG_CC
|
|
|
|
-V_CCOPT="-O"
|
|
-if test "$GCC" = yes ; then
|
|
+if test "x$V_CCOPT" = "x"; then
|
|
+ V_CCOPT="-O"
|
|
+
|
|
+ if test "$GCC" = yes ; then
|
|
AC_MSG_CHECKING(gcc version)
|
|
AC_CACHE_VAL(ac_cv_lbl_gcc_vers,
|
|
ac_cv_lbl_gcc_vers=`$CC -dumpversion 2>&1 | \
|
|
@@ -16,7 +18,8 @@ if test "$GCC" = yes ; then
|
|
if test "$ac_cv_lbl_gcc_vers" -gt 1 ; then
|
|
V_CCOPT="-O2"
|
|
fi
|
|
-fi
|
|
+ fi
|
|
+fi
|
|
if test -f .devel ; then
|
|
V_CCOPT="-g $V_CCOPT -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long"
|
|
fi
|