https://gitlab.synchro.net/main/sbbs/-/commit/fe67561ea4e2d9a86327d819
Modified Files:
exec/install-xtrn.js
Log Message:
install-xtrn.js: use absolute install dir for file access (#1231)
The startup_dir made relative to ctrl_dir in c4ecdec8b7b was also used
for js.exec, [copy:], and [ini:] file access, which resolve against the
current working directory. When ctrl_dir is reached via a symlink (e.g.
/sbbs -> /opt/sbbs), getcwd() returns the physical path, so the lexically calculated relative path (../../opt/sbbs/xtrn/syncdoom/) pointed to a non-existent location and [pre-exec:get-binary.js] failed with "Script
file (get-binary.js) does not exist".
Use an absolute install_dir for file access, keeping the relative
startup_dir for values written to config files (including [ini:] values
and [eval:] strings that reference startup_dir).
Co-Authored-By: Claude Opus 5 (1M context) <
[email protected]>
--- SBBSecho 3.37-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)