[Flightgear-devel] Route Manager/ io.nas
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 - 1.58 +++ io.nas 9 Jan 2009 22:50:16 - @@ -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
Re: [Flightgear-devel] Route Manager/ io.nas
Alasdair Campbell a écrit : 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 I had same trouble, and found that it works if the files are in .fgfs/routes i think adding your path readable in Nasal/IOrules should work... jano -- 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
Re: [Flightgear-devel] Route Manager/ io.nas
On Sat, Jan 10, 2009 at 12:10 AM, Alasdair Campbell ali...@btinternet.com wrote: 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. Rather than removing the security check, you might consider adding a rule to IOrules. Have you actually tried to load a file that is in a location readable according to the default settings? (under $FG_ROOT or $FG_HOME) That should have worked. -- Csaba/Jester -- 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
Re: [Flightgear-devel] Route Manager/ io.nas
On Sat, 2009-01-10 at 00:33 +0100, Csaba Halász wrote: On Sat, Jan 10, 2009 at 12:10 AM, Alasdair Campbell ali...@btinternet.com wrote: 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. Rather than removing the security check, you might consider adding a rule to IOrules. Have you actually tried to load a file that is in a location readable according to the default settings? (under $FG_ROOT or $FG_HOME) That should have worked. I had same trouble, and found that it works if the files are in .fgfs/routes i think adding your path readable in Nasal/IOrules should work... jano Thanks to Jano and Jester for pointing out Nasal/IOrules. GRR I not defined $FG_HOME. Kind regards, Alasdair -- 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