In eager anticipation of James Turners' proposed improvements to the
Route Manager/GPS code, I have been playing around some and noted that
that the route manager dialog contains a "Load List" option. If I try to
use this option, I find that I am unable to load any file (fails the
sanity check in data/nasal/io.nas (even as root)) The enclosed temporary
patch, removing the check resolves the problem for me. A quick grep
seems to to me that this this is the only place where nasal io is used.
I may be wrong, but could someone with more nasal expertise check this
out?

Kind regards, Alasdair

 
Index: io.nas
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Nasal/io.nas,v
retrieving revision 1.58
diff -u -r1.58 io.nas
--- io.nas	12 Dec 2008 14:57:38 -0000	1.58
+++ io.nas	9 Jan 2009 22:50:16 -0000
@@ -324,8 +324,7 @@
             if (mode == "r" or mode == "rb" or mode == "br")
                 rules = read_rules;
 
-            if (var vpath = valid(path, rules))
-                return _open(vpath, mode);
+                return _open(path, mode);
 
             die("io.open(): opening file '" ~ path ~ "' denied (unauthorized access)\n ");
         }
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to