Re: [patch] user/6104: newsyslog count off by one

2010-01-09 Thread Ingo Schwarze
Hi David, --- 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 */ +

[patch] user/6104: newsyslog count off by one

2010-01-08 Thread DAlten
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;