]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_validate.c
do not crash when a manpath directory contains a symbolic link
[mandoc.git] / mdoc_validate.c
index 51a4dfa36246fe9b8281232e27e9c9c3f821b4bd..e1cd3ae1edcbff150170a061868c3013146f511b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.387 2020/04/26 21:41:07 schwarze Exp $ */
+/* $Id: mdoc_validate.c,v 1.389 2021/07/18 11:41:23 schwarze Exp $ */
 /*
  * Copyright (c) 2010-2020 Ingo Schwarze <schwarze@openbsd.org>
  * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -164,7 +164,7 @@ static      const v_post mdoc_valids[MDOC_MAX - MDOC_Dd] = {
        post_defaults,  /* Pa */
        post_rv,        /* Rv */
        post_st,        /* St */
-       post_delim_nb,  /* Va */
+       post_tag,       /* Va */
        post_delim_nb,  /* Vt */
        post_xr,        /* Xr */
        NULL,           /* %A */
@@ -2617,7 +2617,7 @@ post_section(POST_ARGS)
                        if ((nch = n->child) != NULL &&
                            nch->type == ROFFT_TEXT &&
                            strcmp(nch->string, tag) == 0)
-                               tag_put(NULL, TAG_WEAK, n);
+                               tag_put(NULL, TAG_STRONG, n);
                        else
                                tag_put(tag, TAG_FALLBACK, n);
                        free(tag);