summaryrefslogtreecommitdiffstats
path: root/tests/016/ud-arith.expected
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-03-26 06:04:57 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-03-26 06:04:57 -0700
commit0525639460919ef56a9b071f8dc505f97f3062f4 (patch)
tree6145fbec3f23fafea8ea6ff311f35203c0bdec68 /tests/016/ud-arith.expected
parent2f1f4fd7e61baa5d86685a35c338fc225a8f073b (diff)
downloadtxr-0525639460919ef56a9b071f8dc505f97f3062f4.tar.gz
txr-0525639460919ef56a9b071f8dc505f97f3062f4.tar.bz2
txr-0525639460919ef56a9b071f8dc505f97f3062f4.zip
listener: ensure history and temp files are rw-------.
For security, the temporary files used by the "edit in external editor" feature of the listener, as well as the listener history file, should be readable and writable only to the owner. This relates to Debian bug 832460 against the Linenoise library: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832460 In the TXR fork of the linenoise library, since we have an OS abstraction invoked by callback functions, we fix this entirely outside of linenoise. I don't agree with the upstream approach of fiddling with the umask and doing a chmod on the path. Since we are truncating and overwriting the file, all we have to do is, before writing any data, fchmod it to the required permissions. * parser.c (lino_open): If the file is being open for overwriting, then let's set its permissions so that it's readable and writable for the user only.
Diffstat (limited to 'tests/016/ud-arith.expected')
0 files changed, 0 insertions, 0 deletions