View | Details | Raw Unified | Return to bug 224156 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-2 / +1 lines)
Lines 18-28 Link Here
18
		error.xslt index.xslt
18
		error.xslt index.xslt
19
19
20
SUB_FILES=	pkg-message
20
SUB_FILES=	pkg-message
21
USES=		cmake compiler:c11
21
USES=		cmake compiler:c11 localbase:ldflags
22
USE_LDCONFIG=	yes
22
USE_LDCONFIG=	yes
23
USE_RC_SUBR=	hiawatha
23
USE_RC_SUBR=	hiawatha
24
24
25
LDFLAGS+=	-L${LOCALBASE}/lib
26
CMAKE_ARGS+=	-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
25
CMAKE_ARGS+=	-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
27
		-DCMAKE_INSTALL_MANDIR=${PREFIX}/man \
26
		-DCMAKE_INSTALL_MANDIR=${PREFIX}/man \
28
		-DWEBROOT_DIR=${WWWDIR} \
27
		-DWEBROOT_DIR=${WWWDIR} \
(-)files/patch-src_target.c (+15 lines)
Line 0 Link Here
1
show_index is only available when built with MONITOR or XSLT support.
2
3
--- src/target.c.orig	2018-11-16 19:12:23 UTC
4
+++ src/target.c
5
@@ -564,8 +564,10 @@ int execute_cgi(t_session *session) {
6
 
7
 	if ((wrap_cgi == false) && (session->cgi_type != fastcgi)) {
8
 		check_file_exists = true;
9
+#if defined(ENABLE_XSLT) || defined(ENABLE_MONITOR)
10
 	} else if ((session->cgi_type == fastcgi) && session->fcgi_server->localhost && session->host->show_index) {
11
 		check_file_exists = true;
12
+#endif
13
 	} else {
14
 		check_file_exists = false;
15
 	}

Return to bug 224156