tinymux/debian/postinst
Stephen Dennis 9271471d41 Fix mail/comsys false alarms, PlayerNuke guard, debian packaging
- mail_mod.cpp: close malloc/free mismatch and FinalConstruct cleanup
  as false alarms (strdup→free is correct; destructor null-checks all
  interface pointers individually).
- comsys PlayerNuke(): add player < 0 guard returning MUX_E_INVALIDARG.
- debian/postinst: new — restricts config files to mode 640 on install.
- convert/configure.ac: error if yacc/lex not found instead of silent
  fallthrough; fix AC_CHECK_LIB to test yywrap instead of main.
- Update ISSUES.md trackers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 18:00:52 -06:00

18 lines
394 B
Bash
Executable file

#!/bin/sh
set -e
# Restrict permissions on configuration files that may contain
# sensitive settings (port numbers, passwords, SSL paths).
#
if [ "$1" = "configure" ]; then
for conf in netmux.conf mux.config muxssl.conf alias.conf compat.conf; do
f="/usr/share/tinymux/game/$conf"
if [ -f "$f" ]; then
chmod 640 "$f"
fi
done
fi
#DEBHELPER#
exit 0