lighttpd: Disable auto loading mod_authn_file
authorDavid Yang <redacted>
Fri, 1 Feb 2019 07:11:26 +0000 (15:11 +0800)
committerDavid Yang <redacted>
Fri, 1 Feb 2019 08:00:06 +0000 (16:00 +0800)
which never works on OpenWrt

Signed-off-by: David Yang <redacted>
net/lighttpd/patches/020-Disable-auto-loading-mod_authn_file.patch [new file with mode: 0644]

diff --git a/net/lighttpd/patches/020-Disable-auto-loading-mod_authn_file.patch b/net/lighttpd/patches/020-Disable-auto-loading-mod_authn_file.patch
new file mode 100644 (file)
index 0000000..22f3e66
--- /dev/null
@@ -0,0 +1,29 @@
+From 72f2c7559a1cd75b6d86e72358b4b78cdeefa5f4 Mon Sep 17 00:00:00 2001
+From: yangfl <yangfl@users.noreply.github.com>
+Date: Fri, 1 Feb 2019 15:05:32 +0800
+Subject: [PATCH] Disable auto loading mod_authn_file
+
+Which will cause openwrt/packages#7737
+---
+ src/configfile.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/configfile.c b/src/configfile.c
+index 1b2651b9..29bb2aa4 100644
+--- a/src/configfile.c
++++ b/src/configfile.c
+@@ -482,9 +482,9 @@ static int config_insert(server *srv) {
+                * existing lighttpd 1.4.x configs */
+               if (contains_mod_auth) {
+                       if (append_mod_authn_file) {
+-                              ds = data_string_init();
++                              /* ds = data_string_init();
+                               buffer_copy_string_len(ds->value, CONST_STR_LEN("mod_authn_file"));
+-                              array_insert_unique(srv->srvconf.modules, (data_unset *)ds);
++                              array_insert_unique(srv->srvconf.modules, (data_unset *)ds); */
+                       }
+                       if (append_mod_authn_ldap) {
+                             #if defined(HAVE_LDAP_H) && defined(HAVE_LBER_H) && defined(HAVE_LIBLDAP) && defined(HAVE_LIBLBER)
+-- 
+2.20.1
+
git clone https://git.99rst.org/PROJECT