aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc_msg.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-07-04 15:38:26 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-07-04 15:38:26 +0000
commit38564fb72f1972ec44f0dd16e2ae4802adc9d3c9 (patch)
tree8fcb369483727b656742f258c9875c50e59f215b /mandoc_msg.c
parent297de1c8ac72f2de64a49c98141c097cad06e90f (diff)
downloadmandoc-38564fb72f1972ec44f0dd16e2ae4802adc9d3c9.tar.gz
mandoc-38564fb72f1972ec44f0dd16e2ae4802adc9d3c9.zip
The mandoc(1) manual already mentions that -T man output mode
neither supports tbl(7) nor eqn(7) input. If an input file contains such code anyway, tell the user rather than failing an assert(3)ion. Fixing a crash reported by Bjarni Ingi Gislason <bjarniig at rhi dot hi dot is> in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901636 which the Debian maintainer of mandoc, Michael at Stapelberg dot ch, forwarded to me.
Diffstat (limited to 'mandoc_msg.c')
-rw-r--r--mandoc_msg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mandoc_msg.c b/mandoc_msg.c
index 64355ddc..8867bb4b 100644
--- a/mandoc_msg.c
+++ b/mandoc_msg.c
@@ -1,6 +1,6 @@
/* $OpenBSD: mandoc_msg.c,v 1.8 2020/01/19 17:59:01 schwarze Exp $ */
/*
- * Copyright (c) 2014-2020 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2014-2021 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -245,6 +245,8 @@ static const char *const type_message[MANDOCERR_MAX] = {
"eqn delim option in tbl",
"unsupported tbl layout modifier",
"ignoring macro in table",
+ "skipping tbl in -Tman mode",
+ "skipping eqn in -Tman mode",
/* bad command line arguments */
NULL,