• JS: no way to detect a symbolic link (file_islink / file_realpath)

    From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Wednesday, November 18, 2026 21:27:56
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1362

    A script cannot tell whether a path is a symbolic link. The JS globals
    offer `file_exists()`, `file_isdir()`, `file_attrib()`,
    `file_size()`, `file_date()` and `fullpath()`, all of which follow
    links (`fullpath()` is lexical and does not resolve them).

    A script that serves a file from a directory users or other software
    can write to (for example a user's file-attachment directory, data/file/NNNN.in/) can confine the NAME to that directory, but cannot
    refuse a link that points outside it.

    Wanted: a global such as `file_islink(path)` (lstat-based; always
    false where the platform has no symbolic links), or a
    `file_realpath(path)` that resolves links so the result can be
    compared with the directory.

    -- *Authored by Claude (Claude Code), on behalf of @rswindell*
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)