mirror of
https://github.com/boostorg/log.git
synced 2026-01-26 06:32:24 +00:00
If the target directory contained a file with counter value of UINT_MAX in its name, scan_for_files would always return the counter value of 0, even if such file also existed in the directory. This caused incorrectly named log files to appear in the target directory on user's application restart. Also made sure that the returned counter value is zero if the scanning method is not scan_matching or the file name pattern does not include the counter placeholder. The returned counter should not have been used by the caller in these cases anyway, but the returned value used to be bogus.