-
src/xpdev/dirwrap.c
From
deuce@VERT to
CVS commit on Wednesday, April 23, 2014 23:08:37
src/xpdev dirwrap.c 1.85 1.86
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv30741
Modified Files:
dirwrap.c
Log Message:
Fix memory leak when the UNIX _fullpath() returns NULL.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Wednesday, April 23, 2014 23:11:07
src/xpdev dirwrap.c 1.86 1.87
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv30792
Modified Files:
dirwrap.c
Log Message:
Fix last commit... only free() target if we malloc()ed it.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Thursday, April 24, 2014 09:31:18
src/xpdev dirwrap.c 1.87 1.88
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv18553
Modified Files:
dirwrap.c
Log Message:
Per Coverity, allocate a big enough buffer for the delfiles() glob path
rather than using a fixed-length buffer.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Thursday, November 26, 2015 00:27:19
src/xpdev dirwrap.c 1.89 1.90
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv16151
Modified Files:
dirwrap.c
Log Message:
Bug-fix: removecase() was supposed to return 0 upon success, but was returning -1 on success and 0 on failure. Luckily, no caller has been checking the return value.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Thursday, January 21, 2016 04:04:26
src/xpdev dirwrap.c 1.90 1.91
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv14137
Modified Files:
dirwrap.c
Log Message:
Typo in comment.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Friday, January 12, 2018 22:11:56
src/xpdev dirwrap.c 1.94 1.95
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv30456
Modified Files:
dirwrap.c
Log Message:
Use case-sensitive sorting in Windows version of glob() - unless GLOB_NOSORT
is used of course.
This should provide more consistent results with the *nix builds of stuff
(e.g. JS Directory()).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Saturday, February 10, 2018 00:20:40
src/xpdev dirwrap.c 1.95 1.96
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv5116
Modified Files:
dirwrap.c
Log Message:
Fix memory clobbering bug in _fullpath()...
If part of the path were removed (ie: "//", "/./", or "/../"), it's possible that the outer loop would extend past the string into uninitialized memory where it could potentially corrupt things.
This was HIGHLY unlikely as it would stop at the first '/' and only corrupt memory in the presence of the previously mentioned patterns.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, February 20, 2018 13:22:27
src/xpdev dirwrap.c 1.97 1.98
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv4398
Modified Files:
dirwrap.c
Log Message:
Handle glob() failure in getdirsize().
--coverity
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, March 06, 2018 18:40:14
src/xpdev dirwrap.c 1.98 1.99
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv16954
Modified Files:
dirwrap.c
Log Message:
isfullpath() should not return true for "\0:" or "$:"... the first char
must be a letter if the second char is a colon.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, March 06, 2018 18:44:59
src/xpdev dirwrap.c 1.99 1.100
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv17661
Modified Files:
dirwrap.c
Log Message:
Fix last commit.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Saturday, January 12, 2019 00:01:43
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 Monday, January 14, 2019 19:05:14
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 Sunday, August 11, 2019 23:32:28
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 Saturday, September 21, 2019 04:19:08
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 Tuesday, April 14, 2020 04:56:07
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 Monday, May 25, 2020 15:15:09
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 Tuesday, December 22, 2020 15:38:19
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Monday, February 22, 2021 00:29:05
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sunday, June 06, 2021 00:04:44
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 Sunday, June 06, 2021 00:25:38
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 Sunday, January 23, 2022 14:58:21
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Friday, March 25, 2022 10:21:52
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sunday, March 27, 2022 10:24:22
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 Monday, March 28, 2022 01:41:35
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Tuesday, March 29, 2022 01:16:22
-
From
Rob Swindell (in GitKraken)@VERT to
Git commit to main/sbbs/master on Monday, March 13, 2023 18:31:32
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Saturday, January 20, 2024 14:29:14
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 Sunday, January 21, 2024 14:28:18
-
From
Deuc¨@VERT to
Git commit to main/sbbs/master on Saturday, February 24, 2024 08:40:35
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