• src/xpdev/dirwrap.c

    From rswindell@VERT to CVS commit on Fri Jan 11 19:01:00 2019
    src/xpdev dirwrap.c 1.101 1.102
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv29851

    Modified Files:
    dirwrap.c
    Log Message:
    Optimized fdate(), fcdate(), flength(), fnameexist() functions:
    There's no reason to call access() before stat() since stat() will fail
    (return -1) if the file does not exist.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon Jan 14 14:05:00 2019
    src/xpdev dirwrap.c 1.103 1.104
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/home/rswindell/sbbs/src/xpdev

    Modified Files:
    dirwrap.c
    Log Message:
    Make getdirname() behave more consistently with the function of the
    same name in uifc/filepick.c - specifically with regards to paths that
    begin with a / (or \ on Windows).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed Apr 10 13:47:00 2019
    src/xpdev dirwrap.c 1.104 1.105
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/home/rswindell/sbbs/src/xpdev

    Modified Files:
    dirwrap.c
    Log Message:
    Address GCC warning: field precision specifier '.*' expects argument of type 'int'



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun Aug 11 19:32:28 2019
    src/xpdev dirwrap.c 1.107 1.108
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/home/rswindell/sbbs/src/xpdev

    Modified Files:
    dirwrap.c
    Log Message:
    Added new 3rd arg to call to delfiles() from removecase().



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sat Sep 21 00:19:08 2019
    src/xpdev dirwrap.c 1.110 1.111
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv14244

    Modified Files:
    dirwrap.c
    Log Message:
    Fix Borland build failure:
    dirwrap.c 841: Declaration is not allowed here in function getfilesizetotal



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Tue Apr 14 00:56:07 2020
    src/xpdev dirwrap.c 1.111 1.112
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv1415

    Modified Files:
    dirwrap.c
    Log Message:
    Only copy up to MAX_PATH characters to each component in _splitpath()
    Fixes coverity warning in SyncTERM... matches the size all callers currently use.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon May 25 11:15:09 2020
    src/xpdev dirwrap.c 1.112 1.113
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv23403

    Modified Files:
    dirwrap.c
    Log Message:
    Typo in comment.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Tue Dec 22 10: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Feb 21 19: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat Jun 5 20: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_PERIOD
    flag so that when deleting all files in a directory (e.g. node1/temp/*), any files starting with a dot will be deleted too.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat Jun 5 20: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Jan 23 09:58:21 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/efa03b7873c4bbb8500cee65
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    delfiles() now removes files and directories, recursively

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Fri Mar 25 06:21:52 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/30cf70e9542d8ef446a50f46
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    Uh, increment the pointer in globi()

    Fixes crash reported in #381.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Mar 27 06:24:22 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/529912b6399acf676de90888
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    Only filename portion of pattern for globi() shall be case-insensitive

    Windows doesn't allow multiple directories of the same name only differing in case, so don't on *nix either.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Mar 27 21:41:35 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/c4fc80abfaa27ffcc7980d61
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    Fix the globi() change for *nix

    I was stripping the path here... oops.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon Mar 28 21:16:22 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/f4753d2f0446bd0ef32662d0
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    Use the pointer *after* checking that its not NULL

    Fixes CID 351271

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (in GitKraken)@VERT to Git commit to main/sbbs/master on Mon Mar 13 18:31:32 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/5ea2eeb311f22a1e5f826882
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    If delfiles() is called with a NULL spec, assume "all files" (*)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Jan 20 14:29:14 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/d9d140af60f18552e07150de
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    Fix disksize/space functions for Win32

    Broken 11 months ago with commit ae44ab15: the unit argument was ignored (e.g. converting to kibibytes) and the free/total disk size/space checks were reversed.

    Reported by Max (WESTLINE) via usage of JS properties: system.freediskspace and system.freediskspacek.

    The JS global functions dir_freespace() and disk_size() were also broken due to this bug.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sun Jan 21 14:28:18 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/095858e5c974d1e6265f0b65
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    Set size to MAX_PATH+1 when allocating.

    On Win32, size is explcitly "ignored" when target is NULL, so we
    should set it to the size of the allocation.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sat Feb 24 08:40:35 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/cb0dbdaf0928ea962e5b8c9d
    Modified Files:
    src/xpdev/dirwrap.c
    Log Message:
    Fix glob() for Win64

    _fintfirst() is declared in the Mingw-w64 headers as an intptr_t,
    which tracks. Can't find _findfirst on MSDN, so that's good enough
    for me... let's see what the pipeline says.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net