• src/xpdev/dirwrap.c dirwrap.h

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Wed Jan 14 15:28:13 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/67381105b1dd796bc1b24a0e
    Modified Files:
    src/xpdev/dirwrap.c dirwrap.h
    Log Message:
    Fix getdircase() for trailing slash

    It would previously always fail if passed a path ending in a / or \
    (including a root directory).

    Now, it always appends a trailing slash to the case-corrected path whether
    it was initially included or not.

    Tested on both Linux and Windows to provide consistent results between them. --- SBBSecho 3.34-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Wed Jan 14 23:55:34 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/9c74dcf0d2b16023a3a05adc
    Modified Files:
    src/xpdev/dirwrap.c dirwrap.h
    Log Message:
    Create paths_are_same() useful on Windows where paths often have mixed slashes

    I'll add case insensitivity later if needed.

    Extra slashes between/after path elements are not handled either.

    Yes, I know I could do some fullpath magic but I wanted something that strictly used string comparisons and I wasn't concerned with relative paths matching absolute paths to the same actual location.
    --- SBBSecho 3.34-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)