• src/sbbs3/filedat.c xtrn.cpp

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Mon Nov 16 21:58:16 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/511a046be5e2ef9fc2555f0f
    Modified Files:
    src/sbbs3/filedat.c xtrn.cpp
    Log Message:
    cmdstr: quote the Windows %~ path when it has no 8.3 short name

    On Windows, the %~ command-line specifier substitutes the result of GetShortPathName(), appended unquoted since 652fe9ca525 (2001-03-02).
    For a file with no short name (8.3 name creation disabled on the
    volume, or a network share that doesn't provide them) that result is
    the long path, so a filename containing spaces was split into multiple arguments. Example: viewing "1994 post-Congenital demos.mp3" with the
    stock viewer "%@mp3info -x %~" failed with "Error opening MP3" for
    each word of the name, followed by an ERR_EXEC error in viewfile().

    Quote the substituted path when it contains shell-special characters,
    as %f and the non-Windows %~ already do.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)