=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/man_validate.c,v retrieving revision 1.119 retrieving revision 1.120 diff -c -r1.119 -r1.120 *** src/usr.bin/mandoc/man_validate.c 2019/06/27 15:05:14 1.119 --- src/usr.bin/mandoc/man_validate.c 2020/01/19 16:16:32 1.120 *************** *** 1,7 **** ! /* $OpenBSD: man_validate.c,v 1.119 2019/06/27 15:05:14 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons ! * Copyright (c) 2010, 2012-2018 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above --- 1,7 ---- ! /* $OpenBSD: man_validate.c,v 1.120 2020/01/19 16:16:32 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons ! * Copyright (c) 2010, 2012-2020 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above *************** *** 183,189 **** man->meta.title = mandoc_strdup(""); man->meta.msec = mandoc_strdup(""); ! man->meta.date = mandoc_normdate(man, NULL, n->line, n->pos); } if (man->meta.os_e && --- 183,189 ---- man->meta.title = mandoc_strdup(""); man->meta.msec = mandoc_strdup(""); ! man->meta.date = mandoc_normdate(NULL, NULL); } if (man->meta.os_e && *************** *** 399,413 **** if (n != NULL) n = n->next; ! if (n != NULL && n->string != NULL && n->string[0] != '\0') ! man->meta.date = mandoc_normdate(man, ! n->string, n->line, n->pos); ! else { man->meta.date = mandoc_strdup(""); ! mandoc_msg(MANDOCERR_DATE_MISSING, ! n == NULL ? nb->line : n->line, ! n == NULL ? nb->pos : n->pos, "TH"); ! } /* TITLE MSEC DATE ->OS<- VOL */ --- 399,408 ---- if (n != NULL) n = n->next; ! if (man->quick && n != NULL) man->meta.date = mandoc_strdup(""); ! else ! man->meta.date = mandoc_normdate(n, nb); /* TITLE MSEC DATE ->OS<- VOL */