summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Johnston <rob.johnston@joyent.com>2019-06-05 22:49:18 +0000
committerDan McDonald <danmcd@joyent.com>2019-06-24 16:40:09 -0400
commit3c308cd1a430039e3b6327544d02ab1a5384066a (patch)
treec6f6f33e479c859a38e2bf9a6e42ac38fa259d68
parent3970c09844d4f5e54234620de153ab71a05afbca (diff)
downloadillumos-joyent-3c308cd1a430039e3b6327544d02ab1a5384066a.tar.gz
11259 mandoc should allow ERRORS section in all man section 7 variants
Reviewed by: Robert Mustacchi <robert.mustacchi@joyent.com> Reviewed by: Jason King <jason.king@joyent.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Michal Nowak <mnowak@startmail.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/mandoc/mdoc_validate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/mandoc/mdoc_validate.c b/usr/src/cmd/mandoc/mdoc_validate.c
index a31310ec45..4ef95e28b8 100644
--- a/usr/src/cmd/mandoc/mdoc_validate.c
+++ b/usr/src/cmd/mandoc/mdoc_validate.c
@@ -3,7 +3,7 @@
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2019 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2010 Joerg Sonnenberger <joerg@netbsd.org>
- * Copyright 2018, Joyent, Inc.
+ * Copyright 2019 Joyent, Inc.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -2373,9 +2373,9 @@ post_sh_head(POST_ARGS)
case SEC_ERRORS:
if (*mdoc->meta.msec == '4')
break;
- if (*mdoc->meta.msec == '7' && *(mdoc->meta.msec + 1) == 'I')
+ if (*mdoc->meta.msec == '7')
break;
- goodsec = "2, 3, 4, 7I, 9";
+ goodsec = "2, 3, 4, 7, 9";
/* FALLTHROUGH */
case SEC_RETURN_VALUES:
case SEC_LIBRARY: