summaryrefslogtreecommitdiff
path: root/flx/init-scripts/files/9999-thttpd-Add-cgi-config-token.patch
blob: 007dda115e3c3302c21f238422ddcfa3f3e278e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From a3bbbf2f0a6009c13d051c8bfa97d8745e43dd2a Mon Sep 17 00:00:00 2001
From: Bertrand Jacquin <bertrand@jacquin.bzh>
Date: Fri, 1 May 2009 22:07:35 +0200
Subject: [PATCH 8/9] thttpd: Add cgi config token

---
 sbin/init.d/thttpd | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sbin/init.d/thttpd b/sbin/init.d/thttpd
index 091648b..31c63c4 100755
--- a/sbin/init.d/thttpd
+++ b/sbin/init.d/thttpd
@@ -11,6 +11,7 @@ option	user	standard_option
 option	address	standard_option
 option	logfile	standard_option
 option	charset	standard_option iso-8859-1
+option	cgi	multiple_option
 option	bin	reserved_option	/usr/sbin/thttpd
 
 # assign default values to options and variables before parsing the cfg file
@@ -20,6 +21,7 @@ function fct_begin_section {
 	     ${opt_docroot:+-d $opt_docroot} ${opt_chroot:+-r} ${opt_symlink:+-s}
 	     ${opt_user:+-u $opt_user} ${opt_address:+-h $opt_address}
 	     ${opt_logfile:+-l $opt_logfile} ${opt_charset:+-T $opt_charset}
+	     ${opt_cgi:+-c ${opt_cgi[@]}}
 	     ${pidfile:+-i $pidfile}'
 }