File: Do-not-use-the-Internet-to-fetch-DTD.patch

package info (click to toggle)
offlineimap 7.2.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,232 kB
  • sloc: python: 7,945; sh: 515; makefile: 79
file content (29 lines) | stat: -rw-r--r-- 907 bytes parent folder | download
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: Ilias Tsitsimpis <i.tsitsimpis@gmail.com>
Date: Sun, 10 Jan 2016 21:11:10 +0200
Subject: Do not use the Internet to fetch DTD

Use '--nonet' flag in order to prevent xsltproc from using the Internet
to fetch DTDs, entities or documents.

Forwarded: no (Debian specific)
---
 docs/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/Makefile b/docs/Makefile
index 60148da..1476e19 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -28,10 +28,10 @@ offlineimapui.html: offlineimapui.txt
 man: offlineimap.1 offlineimapui.7
 
 offlineimap.1: offlineimap.txt offlineimap.known_issues.txt
-	a2x -v -d manpage -f manpage $<
+	a2x --xsltproc-opts=-nonet -v -d manpage -f manpage $<
 
 offlineimapui.7: offlineimapui.txt
-	a2x -v -d manpage -f manpage $<
+	a2x --xsltproc-opts=-nonet -v -d manpage -f manpage $<
 
 api:
 	$(SPHINXBUILD) -b html -d html/doctrees doc-src html