=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/calendar/day.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- src/usr.bin/calendar/day.c 2016/07/13 21:32:01 1.33 +++ src/usr.bin/calendar/day.c 2016/09/14 15:09:46 1.34 @@ -1,4 +1,4 @@ -/* $OpenBSD: day.c,v 1.33 2016/07/13 21:32:01 millert Exp $ */ +/* $OpenBSD: day.c,v 1.34 2016/09/14 15:09:46 millert Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -543,7 +543,9 @@ tdiff = difftime(ttmp, f_time)/ SECSPERDAY; if (tdiff <= offset + f_dayAfter || (bodun && tdiff == -1)) { - if ((tmtmp.tm_mon == month) && + if (((tmtmp.tm_mon == month) || + (flags & F_SPECIAL) || + (interval == WEEKLY)) && (tdiff >= 0 || (bodun && tdiff == -1))) { if ((tmp = malloc(sizeof(struct match))) == NULL)