Hello,
Please review the proposed patch to fix the newsyslog problem.
Thanks,
David
$ diff -u newsyslog.c newsyslog.c.bak
--- newsyslog.c.bak Thu Oct 22 21:18:12 2009
+++ newsyslog.c Thu Oct 22 22:00:09 2009
@@ -756,6 +756,9 @@
char file1[MAXPATHLEN], file2[MAXPATHLEN], *suffix;
int numdays = ent->numlogs;
+ /* We start counting at 0 so reduce for correct maximum */
+ numdays--;
+
/* Remove oldest log (may not exist) */
(void)snprintf(file1, sizeof(file1), "%s.%d", oldlog, numdays);
(void)snprintf(file2, sizeof(file2), "%s.%d%s", oldlog, numdays,