1654. [bug] isc_result_totext() contained array bounds read
+1655. [bug] Logging multiple versions w/o a size was broken.
+ [RT #11446]
+
error.
1650. [bug] dig, nslookup: flush standard out after each command.
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: log.c,v 1.70.2.13 2004/06/04 02:19:13 marka Exp $ */
+/* $Id: log.c,v 1.70.2.14 2004/06/11 00:36:39 marka Exp $ */
/* Principal Authors: DCL */
if (stat(path, &statbuf) == 0) {
regular_file = S_ISREG(statbuf.st_mode) ? ISC_TRUE : ISC_FALSE;
/* XXXDCL if not regular_file complain? */
- roll = ISC_TF(regular_file && FILE_MAXSIZE(channel) > 0 &&
- statbuf.st_size >= FILE_MAXSIZE(channel));
+ if ((FILE_MAXSIZE(channel) == 0 &&
+ FILE_VERSIONS(channel) != ISC_LOG_ROLLNEVER) ||
+ (FILE_MAXSIZE(channel) > 0 &&
+ statbuf.st_size >= FILE_MAXSIZE(channel)))
+ roll = regular_file;
} else if (errno == ENOENT)
regular_file = ISC_TRUE;
else