https://gitlab.synchro.net/main/sbbs/-/commit/b7b0ce834f160e8c947943dc
Modified Files:
docs/v322_new.md src/sbbs3/file.cpp
Log Message:
editfiledesc(): update the stored file record, not the listed copy
editfiledesc() set the new description on the file_t it was handed and
wrote that whole record back with updatefile(). Its callers (the file information prompts' D and E commands) pass the copy loaded when the
listing began, so any change another node made to the file in the
meantime was reverted: a download count, the tags, the uploader. If the extended description had been rewritten in between, its data blocks had
moved, and the stale header's data-field offsets then pointed at freed
blocks.
Now it loads the file's current record, sets the description on that and
writes it, then updates the caller's copy for the redisplay. A file
removed by another node is reported as not existing rather than as an
error. A description left empty on a file that had none is no longer
written.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net