]> granicus.if.org Git - nethack/commit
Secure config errors
authorPasi Kallinen <paxed@alt.org>
Sun, 10 Sep 2017 18:05:45 +0000 (21:05 +0300)
committerPasi Kallinen <paxed@alt.org>
Sun, 10 Sep 2017 18:05:51 +0000 (21:05 +0300)
commit9c118b5b6b64add187c08b5e3d88ea5beca2e4c8
tree49e27a0d1b50daa0c266fafd9136edc6de3a57d9
parent0d24113577692fee00e02c330942e9df30fceec6
Secure config errors

If user can make NETHACKOPTIONS point to a file, that user could then
get the file contents via the extended config file error reporting.
Add CONFIG_ERROR_SECURE compile-time option to make that case output
only the first error, no line number or error context.
include/config.h
include/extern.h
src/files.c
src/options.c
sys/share/pcmain.c
sys/unix/unixmain.c