https://gitlab.synchro.net/main/sbbs/-/commit/a4aee23ca58ec4fb3d8e048b
Modified Files:
src/sbbs3/jsexec.cpp
Log Message:
Go back to using "non-standard third parameter to main for environment"
... but only for non-macOS builds, since apparently there was an issue
(see commit bae7c4dc6d).
This revert fixes the following MSVC build warning
warning C4273: '__p__environ': inconsistent dll linkage
This *may* fix an issue that plt was reporting where it appeared the SBBSCTRL environment variable was getting clobbered by running 'jsexec addfiles.js'
for imports of a lot of files resulting in subsequent errors (running jsexec) with finding main.ini since the SBBSCTRL environment (pointing to the correct location of main.ini) was missing or empty in the process or shell. A similar error was reported using SBBSCTRL->User->Edit or SBBSCTRL->File->Run ... , but only after running jsexec (addfiles.js). The root cause was not determined, so this is just a guess that there could be some relation to this change.
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net