diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-09-15 15:39:35 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-09-15 15:39:35 +0200 |
commit | 4b8f49b998ee2f1420d45669bc3a4a515482cc9f (patch) | |
tree | 374e08696eefa6a0e536fc8e649627fe7100cf61 /src/usr.bin/calendar/day.c | |
parent | 947c1f5ffaef0e77137486442be480874ff1fb1c (diff) | |
download | outils-4b8f49b998ee2f1420d45669bc3a4a515482cc9f.tar.gz outils-4b8f49b998ee2f1420d45669bc3a4a515482cc9f.tar.xz outils-4b8f49b998ee2f1420d45669bc3a4a515482cc9f.zip |
cvs update
Diffstat (limited to 'src/usr.bin/calendar/day.c')
-rw-r--r-- | src/usr.bin/calendar/day.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr.bin/calendar/day.c b/src/usr.bin/calendar/day.c index 7e8da77..a34e785 100644 --- a/src/usr.bin/calendar/day.c +++ b/src/usr.bin/calendar/day.c @@ -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 @@ isnow(char *endp, int bodun) 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) |