24_global_action.dpatch
 25_standard_medium.dpatch
 26_edit_only_writable.dpatch
+27_remove_nsl.dpatch
+28_usermanual_slash.dpatch
 
--- /dev/null
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 27_remove_nsl.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove unnecessary linking against libnsl.
+
+@DPATCH@
+diff -urNad privoxy~/configure.in privoxy/configure.in
+--- privoxy~/configure.in
++++ privoxy/configure.in
+@@ -869,7 +869,7 @@
+ dnl =================================================================
+ 
+ dnl Next line needed to find the gethost*_r functions on Solaris
+-AC_CHECK_LIB(nsl, gethostbyname)
++dnl AC_CHECK_LIB(nsl, gethostbyname)
+ 
+ AC_CHECK_FUNC(gethostbyaddr_r, [
+   AC_MSG_CHECKING([signature of gethostbyaddr_r])
 
--- /dev/null
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 28_usermanual_slash.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Redirect http://p.p/user-manual (without trailing slash) to 
+## DP: http://p.p/user-manual/ (with trailing slash), otherwise the links
+## DP: will be broken (#244931).
+
+@DPATCH@
+diff -urNad privoxy~/cgisimple.c privoxy/cgisimple.c
+--- privoxy~/cgisimple.c
++++ privoxy/cgisimple.c
+@@ -716,6 +716,11 @@
+    assert(rsp);
+    assert(parameters);
+ 
++   if (!parameters->first) {
++      /* requested http://p.p/user-manual (without trailing slash) */
++      return cgi_redirect(rsp, CGI_PREFIX "user-manual/");
++   }
++
+    get_string_param(parameters, "file", &filename);
+    /* Check paramter for hack attempts */
+    if (filename && strchr(filename, '/'))