Please ignore the previous email to misc.  I believe the tm_mon part is still 
necessary and hope that I’ve rediscovered how to send inline diffs reliably.

--david

Index: newsyslog.c
===================================================================
RCS file: /cvs/src/usr.bin/newsyslog/newsyslog.c,v
retrieving revision 1.92
diff -u -p -r1.92 newsyslog.c
--- newsyslog.c 26 Nov 2013 13:19:07 -0000      1.92
+++ newsyslog.c 21 Nov 2014 14:40:32 -0000
@@ -1186,7 +1186,7 @@ parse8601(char *s)
        }
 
        /* sanity check */
-       if (tm.tm_year < 70 || tm.tm_mon < 0 || tm.tm_mon > 12 ||
+       if (tm.tm_year < 70 || tm.tm_mon < 0 || tm.tm_mon > 11 ||
            tm.tm_mday < 1 || tm.tm_mday > 31)
                return (-1);
 


Reply via email to