[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How-to LUA script file access restrictions?
- From: "Zdenek Stangl" <ptaczek@...>
- Date: Mon, 17 Mar 2003 17:39:30 +0100
Of course ;))) I've redefined the _ERRORMESSAGE time ago and now Im asking
;) Thanx!
ptaczek.
"Wim Couwenberg" <w.couwenberg@chello.nl> píse v diskusním príspevku
news:001301c2ec9f$055f92e0$0300000a@dell...
> Hi,
>
> > Is there any possibility to restrict file access from scripts to
specified
> > paths only without modifying the lua source code ?
>
> You can redefine (in Lua) the lua functions that take a filename argument
to
> check for validity of the path first. In Lua 4 these would be:
>
> dofile
> openfile
> readfrom
> writeto
> appendto
> remove
> rename
>
> For lua 5.0:
>
> loadfile
> dofile
> io.open
> io.input
> io.output
> io.lines
>
> Bye,
> Wim
>
>
>