Subj : src/sbbs3/filedat.c To : Git commit to main/sbbs/master From : Rob Swindell Date : Tue Aug 02 2022 17:20:24 https://gitlab.synchro.net/main/sbbs/-/commit/bff68ad04b5051effdd82bb0 Modified Files: src/sbbs3/filedat.c Log Message: Check max_files value in extract_files_from_archive() betterAddress issue reported by Nightfox via DOVE-Net:Today I was using the Archive class to extract exactly one file from a zipfile, and I'm a little confused on the exception throwing behavior regardingthe max_files parameter. When calling extract(), I gave it a filename patternand expected exactly 1 file to be extracted, so I also gave a max_filesargument as 1. It extracted the one file, but it threw an exception with theerror "Error: maximum number of files (1) extracted (after extracting 1 itemsuccessfully)".Should that be an error condition to throw an exception? I expected 1 file tobe extracted, and that file was extracted successfully. If I specify max_filesas 2, then it doesn't throw an exception. --- SBBSecho 3.15-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .