SOURCES: asciidoc-safe.patch (NEW) - asciidoc system dir is safe

qboosh qboosh at pld-linux.org
Tue Sep 2 22:40:09 CEST 2008


Author: qboosh                       Date: Tue Sep  2 20:40:09 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- asciidoc system dir is safe

---- Files affected:
SOURCES:
   asciidoc-safe.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/asciidoc-safe.patch
diff -u /dev/null SOURCES/asciidoc-safe.patch:1.1
--- /dev/null	Tue Sep  2 22:40:09 2008
+++ SOURCES/asciidoc-safe.patch	Tue Sep  2 22:40:03 2008
@@ -0,0 +1,11 @@
+--- asciidoc-8.2.7/asciidoc.py.orig	2008-07-03 01:15:11.000000000 +0200
++++ asciidoc-8.2.7/asciidoc.py	2008-09-02 21:39:38.172995689 +0200
+@@ -140,7 +140,7 @@
+         directory = os.path.dirname(document.infile)
+     elif directory == '':
+         directory = '.'
+-    return not safe() or file_in(fname, directory)
++    return not safe() or file_in(fname, directory) or file_in(fname, "/usr/share/asciidoc")
+ 
+ # Return file name which must reside in the parent file directory.
+ # Return None if file is not found or not safe.
================================================================


More information about the pld-cvs-commit mailing list