Files
hammer/recipes/empty-title.patch
T
sergio 8d37d4576f base-system-2: promover 7 tier-2 a canónicas + repo firmado
shadow (useradd/passwd), kbd (loadkeys/setfont), procps-ng (ps/top/free), pciutils (lspci),
lsof, strace, mandoc (man) → recipes/ canónicas + índice firmado. usbutils (falta libusb) y
gnupg (falta libassuan/libksba/npth) quedan staged/bloqueados; foot diferido (Wayland).
Segunda tanda del userland foundational: usuarios + teclado + proceso + hardware + docs + debug.
2026-07-10 23:51:48 -04:00

48 lines
1.7 KiB
Diff

Patch-Source: https://marc.info/?l=mandoc-discuss&m=175200050325256&w=2
--- a/man_validate.c
+++ b/man_validate.c
@@ -481,7 +481,7 @@ post_TH(CHKARGS)
/* ->TITLE<- MSEC DATE OS VOL */
n = n->child;
- if (n != NULL && n->string != NULL) {
+ if (n != NULL && n->string != NULL && *n->string != '\0') {
for (p = n->string; *p != '\0'; p++) {
/* Only warn about this once... */
if (isalpha((unsigned char)*p) &&
@@ -494,8 +494,8 @@ post_TH(CHKARGS)
}
man->meta.title = mandoc_strdup(n->string);
} else {
- man->meta.title = mandoc_strdup("");
- mandoc_msg(MANDOCERR_TH_NOTITLE, nb->line, nb->pos, "TH");
+ man->meta.title = mandoc_strdup("UNTITLED");
+ mandoc_msg(MANDOCERR_DT_NOTITLE, nb->line, nb->pos, "TH");
}
/* TITLE ->MSEC<- DATE OS VOL */
--- a/regress/man/TH/noarg.out_ascii
+++ b/regress/man/TH/noarg.out_ascii
@@ -1,4 +1,4 @@
-() ()
+UNTITLED() UNTITLED()
NNAAMMEE
TH-noarg - no arguments to the TH macro
@@ -6,4 +6,4 @@ NNAAMMEE
DDEESSCCRRIIPPTTIIOONN
some text
-OpenBSD ()
+OpenBSD UNTITLED()
--- a/regress/man/TH/noarg.out_lint
+++ b/regress/man/TH/noarg.out_lint
@@ -1,3 +1,3 @@
-mandoc: noarg.in:2:2: WARNING: missing manual title, using "": TH
-mandoc: noarg.in:2:2: WARNING: missing manual section, using "": TH
+mandoc: noarg.in:2:2: WARNING: missing manual title, using UNTITLED: TH
+mandoc: noarg.in:2:2: WARNING: missing manual section, using "": TH UNTITLED
mandoc: noarg.in:2:2: WARNING: missing date, using "": TH