[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#339924: advi: same problem



On Wed, Nov 23, 2005 at 09:06:02AM +0100, San Vu-Ngoc wrote:
> Warning: Error: /invalidfileaccess in --file--
> Warning: Operand stack:
> Warning:    (/usr/share/texmf/dvips/base/special.pro)   (r)
[snip]
> So it this a bug of advi of gs ???

This bug is clearly an incompatibility between the -dSAFER option and the
texc.pro file. At the very least, it should be forwarded to the gs
maintainers, and to advi's upstream. In the meantime, here is a less radical
patch (compared to removing the -dSAFER option altogether), which should
work.

-- 
Boris
Index: gs.ml
===================================================================
RCS file: /net/yquem/devel/caml/repository/bazar-ocaml/advi/gs.ml,v
retrieving revision 1.43
diff -u -r1.43 gs.ml
--- gs.ml	7 Dec 2004 20:48:03 -0000	1.43
+++ gs.ml	5 Dec 2005 15:03:09 -0000
@@ -137,7 +137,7 @@
     (if !antialias then x11alpha_device else x11_device);
     [|
       "-q";
-      "-dSAFER";
+      "-dDELAYSAFER";
       "-";
     |]] in
 
@@ -430,6 +430,7 @@
           gs # line advi_pro;
           gs # line "TeXDict begin @landscape end";
           gs # line "/SI save def gsave";
+          gs # line ".setsafe";
           process <- Some gs;
           gs
       | Some gs ->

Reply to: