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:
parent
bc63ff3ea8
commit
6662ba5006
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue