From 3c308cd1a430039e3b6327544d02ab1a5384066a Mon Sep 17 00:00:00 2001 From: Rob Johnston Date: Wed, 5 Jun 2019 22:49:18 +0000 Subject: 11259 mandoc should allow ERRORS section in all man section 7 variants Reviewed by: Robert Mustacchi Reviewed by: Jason King Reviewed by: Toomas Soome Reviewed by: Michal Nowak Reviewed by: Gergő Doma Approved by: Dan McDonald MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/cmd/mandoc/mdoc_validate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/src') 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 * Copyright (c) 2010-2019 Ingo Schwarze * Copyright (c) 2010 Joerg Sonnenberger - * 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: -- cgit v1.2.3