1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Merge pull request #118 from sgerwk/master

update documentation of the lua tmpfile() function
This commit is contained in:
rkd77 2021-04-17 11:04:47 +02:00 committed by GitHub
commit fe040ee50a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,13 +234,11 @@ tmpname ()::
`os.tmpname`, this one generates ELinks-related names `os.tmpname`, this one generates ELinks-related names
(currently with "elinks" at the beginning of the name). (currently with "elinks" at the beginning of the name).
+ +
WARNING: The `tmpname` function does not create the file and does not WARNING: The `tmpname` function creates the file but does not
guarantee exclusive access to it: the caller must handle the guarantee exclusive access to it: another process may delete the
possibility that another process creates the file and begins file and recreate it. This exposes you to symlink attacks by other
using it while this function is returning. Failing to do this users. To avoid the risk, use `io.tmpfile` instead; unfortunately,
may expose you to symlink attacks by other users. To avoid it does not tell you the name of the file.
the risk, use `io.tmpfile` instead; unfortunately, it does not
tell you the name of the file.
bind_key (keymap, keystroke, function):: bind_key (keymap, keystroke, function)::
Currently, `keymap` must be the string `"main"`. Keystroke is a Currently, `keymap` must be the string `"main"`. Keystroke is a