new io.open()'s closure musn't get manipulated either
This commit is contained in:
parent
3cfc93927f
commit
dc4b8633a3
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
||||||
|
|
||||||
var _closure = globals.closure;
|
var _closure = globals.closure;
|
||||||
globals.closure = func(fn, level) {
|
globals.closure = func(fn, level) {
|
||||||
if(fn != self and fn != caller(0)[1])
|
if(fn != self and fn != caller(0)[1] and fn != io.open)
|
||||||
return _closure(fn, level);
|
return _closure(fn, level);
|
||||||
|
|
||||||
die("closure(): query denied (unauthorized access)");
|
die("closure(): query denied (unauthorized access)");
|
||||||
|
|
Loading…
Reference in a new issue