diff options
Diffstat (limited to 'textproc/libxslt/files/patch-libxslt_transform.c')
-rw-r--r-- | textproc/libxslt/files/patch-libxslt_transform.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/textproc/libxslt/files/patch-libxslt_transform.c b/textproc/libxslt/files/patch-libxslt_transform.c new file mode 100644 index 000000000000..744e8dd9b127 --- /dev/null +++ b/textproc/libxslt/files/patch-libxslt_transform.c @@ -0,0 +1,18 @@ +--- libxslt/transform.c.orig 2017-10-30 07:49:55 UTC ++++ libxslt/transform.c +@@ -3485,10 +3485,11 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNode + */ + if (ctxt->sec != NULL) { + ret = xsltCheckWrite(ctxt->sec, ctxt, filename); +- if (ret == 0) { +- xsltTransformError(ctxt, NULL, inst, +- "xsltDocumentElem: write rights for %s denied\n", +- filename); ++ if (ret <= 0) { ++ if (ret == 0) ++ xsltTransformError(ctxt, NULL, inst, ++ "xsltDocumentElem: write rights for %s denied\n", ++ filename); + xmlFree(URL); + xmlFree(filename); + return; |