From 83bc98c665a238ecc2ae6a83103ff7f6f28d5567 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 13 May 2021 20:48:17 +0200 Subject: cgit-about-filter: Do not report the OS name in manual pages By default, mandoc includes the operating system name in its formatted manual pages for mdoc(7)'s Os and man(7)'s TH macro. This is potentially sensitive information and should not be leaked out into the world. Clear out the operating system name fully by using mandoc(1)'s -Ios= option. --- cgit-about-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgit-about-filter.c') diff --git a/cgit-about-filter.c b/cgit-about-filter.c index 02b6043..4897fa7 100644 --- a/cgit-about-filter.c +++ b/cgit-about-filter.c @@ -26,7 +26,7 @@ main(int argc, char *argv[]) return 1; if (strlen(ext) == 1 && isdigit(*ext)) { - EXEC("mandoc", "-Thtml", "-Ofragment"); + EXEC("mandoc", "-Thtml", "-Ofragment", "-Ios="); } else if (strcmp(ext, "md") == 0) { EXEC("lowdown", "-Thtml"); } -- cgit v1.2.3-2-gb3c3