• src/xpdev/dirwrap.c

    From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Tue Dec 22 15:38:19 2020
    https://gitlab.synchro.net/main/sbbs/-/commit/438f8540ee3a55d28daa99c2
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    Comment block update. No code change.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Mon Feb 22 00:29:05 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/29b2cb05145f9663cb9b3d1b
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    CopyFile() for *nix now copies the file modification date/time too.to mimic the behavior of the Win32 API function of the same name.
    --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sun Jun 6 00:04:44 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/23d36a634b40b71178cfc374
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    Fix delfiles() to delete files starting with '.' (that match the pattern)glob() by default, doesn't include 'dot files', so include the GLOB_PERIODflag so that when deleting all files in a directory (e.g. node1/temp/*), anyfiles starting with a dot will be deleted too.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sun Jun 6 00:25:38 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/29cef0e7ad7f1208b5fcd0d0
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    I guess GLOB_PERIOD is Linux or GNU extension. <shrug>Fix FreeBSD build error:dirwrap.c:760:13: error: use of undeclared identifier 'GLOB_PERIOD'Not sure how glob() on FreeBSD treats "dot files" or how to control that.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Nov 14 10:01:38 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/9792e4b5c880008a33a70ecf
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    Fix getfreediskspace()/getdisksize() on Unix for units larger than 1

    The Unix (statfs and statvfs) branches of getdiskspace() divided the block count by the requested unit before multiplying by the block size. With a
    4 KiB block size that made any unit of 1 GiB or more return 0 unless at
    least 4 TiB was free (e.g. @FREESPACEG@ showed 0 with 574 GB free), and
    rounded K and M results down to a multiple of the block size.

    Compute the byte total first, then divide by the unit, as the Windows
    branch already does.

    Affected callers include @FREESPACEK/M/G/T@, JS disk_free()/disk_size()
    and system.freediskspacek, the umonitor free space display, and the
    SBBSecho minimum free space check. Callers passing a unit of 1 were
    unaffected.

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