From 0440d04f831796e92d968422b8c49941e046cb8a Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 10 Mar 2023 13:21:12 +0100 Subject: [PATCH] lint-man.mk: lint-man-groff-eqn: Fix error detection eqn(1) could theoretically write _only_ newlines to standard error. That's unlikely, but I'm still worried that someone (even me) might copy this trick around, and use it in situations where that might actually happen. Let's be more precise, and fail when there's literally anything on standard error. Reported-by: Ralph Corderoy Signed-off-by: Alejandro Colomar --- lib/lint-man.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lint-man.mk b/lib/lint-man.mk index 0583964b4c..d47aadc718 100644 --- a/lib/lint-man.mk +++ b/lib/lint-man.mk @@ -96,7 +96,7 @@ $(_LINT_man_groff_eqn): %.eqn: %.tbl | $$(@D)/. $(_LINT_man_groff_troff): %.troff: %.eqn | $$(@D)/. $(info LINT (eqn) $@) $(EQN) $(EQNFLAGS) <$< 2>&1 >$@ \ - | ( ! $(GREP) . ) + | ( ! $(GREP) ^ ) $(_LINT_man_groff_grotty): %.grotty: %.troff | $$(@D)/. $(info LINT (troff) $@) -- 2.47.3