1
0
Fork 0

Access checker: properly convert paths to the norm.

The same was already done for fg-root and fg-home paths - it was only
missing for fg-scenery and fg-aircraft paths.
This commit is contained in:
ThorstenB 2012-11-16 20:34:32 +01:00
parent bc63ff3ea8
commit 6662ba5006

View file

@ -269,7 +269,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
var p = substr(pattern, 13);
var sim = props.globals.getNode("/sim");
foreach (var c; sim.getChildren("fg-aircraft")) {
pattern = c.getValue() ~ "/" ~ p;
pattern = string.normpath(c.getValue()) ~ "/" ~ p;
append(rules, [pattern, allow]);
printlog("info", "IORules: appending ", pattern);
}
@ -277,7 +277,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
var p = substr(pattern, 12);
var sim = props.globals.getNode("/sim");
foreach (var c; sim.getChildren("fg-scenery")) {
pattern = c.getValue() ~ "/" ~ p;
pattern = string.normpath(c.getValue()) ~ "/" ~ p;
append(rules, [pattern, allow]);
printlog("info", "IORules: appending ", pattern);
}