From rswindell@1:103/705 to CVS commit on Sun Mar 4 16:38:44 2018
src/sbbs3 mail.cpp 1.31 1.32
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv32570
Modified Files:
mail.cpp
Log Message:
delmail() re-writes the mail.sid file. Since I've seen some recent
mail.sid corruption approximately around midnight (when delmail()) is
called as part of the "DAILY:" mail maintenance, I'm suspicious of this function and while I haven't found any bugs, I did find (and now fixed)
lack of error checking in calls to smb_fsetlength() and smb_fwrite().
From rswindell@1:103/705 to CVS commit on Mon Apr 30 15:54:19 2018
src/sbbs3 mail.cpp 1.32 1.33
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv3367
Modified Files:
mail.cpp
Log Message:
delmail(): don't truncate the .sid file to 0-bytes before writing the contents, instead truncate to the new length after writing the contents. This should
make mail.sid files more tolerant of "out of disk space" situations and reduce the risk of lost data (0-byte mail.sid files) due to low/no free disk space.