Subj : src/sbbs3/ftpsrvr.c To : Git commit to main/sbbs/master From : Rob Swindell (on Windows) Date : Thu Feb 02 2023 17:51:37 https://gitlab.synchro.net/main/sbbs/-/commit/8e94a448a7346a36d4a85dbe Modified Files: src/sbbs3/ftpsrvr.c Log Message: Fix uploader-notification, credit awards, download-counters in FTP downloadsSince v3.19 (the new filebases), when a user FTP-downloaded a file, we failedto properly find/load that file's record from the filebase (searching for thefile's full path, rather than just the filename), so the code the incrementsthe file's download counter, notifies the uploader, awards credits, etc. didnot ever execute. This means that FTP-downloads for all files downloaded viaFTP were effectively "free" (and nobody noticed). No error was logged either.I discovered this while debugging the case of "(null)" filenames in theaction/download MQTT topic messages being published by the FTP server. Sothat issue is fixed as part of this commit as well.Oh, and if this code had executed before, it would have memory-leaked thefile information, so that's fixed too (added call to smb_freefilemem). Ugh. --- SBBSecho 3.20-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .