aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-28 14:42:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-28 14:42:27 +0000
commit6d601f57d01308c8dcd7d348a05eaf33f9f1b9ce (patch)
tree085c053e6a6fb2e3d0413f31ef56ea03bfbc9772 /man_validate.c
parentf39353f2335ef79f686c763d3cc3777bf474dacc (diff)
downloadmandoc-6d601f57d01308c8dcd7d348a05eaf33f9f1b9ce.tar.gz
mandoc-6d601f57d01308c8dcd7d348a05eaf33f9f1b9ce.tar.zst
mandoc-6d601f57d01308c8dcd7d348a05eaf33f9f1b9ce.zip
mdoc(7) already uses the mandoc(1) -Ios argument in the footer line
when .Os has no argument, so do the same for man(7) when .TH has less than four arguments; there is no reason to treat both differently. Issue found following a question from Thomas Klausner <wiz at NetBSD>.
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/man_validate.c b/man_validate.c
index 5688bb54..48f2ed5b 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -379,6 +379,8 @@ post_TH(CHKARGS)
if (n && (n = n->next))
man->meta.source = mandoc_strdup(n->string);
+ else if (man->defos != NULL)
+ man->meta.source = mandoc_strdup(man->defos);
/* TITLE MSEC DATE SOURCE ->VOL<- */
/* If missing, use the default VOL name for MSEC. */