summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/cgi.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-07-10 12:48:08 +0000
committerschwarze <schwarze@openbsd.org>2019-07-10 12:48:08 +0000
commit1432e70157419c46e10d6692e380b6813b6aa448 (patch)
tree2dfc5500e18d8601d3351305e5fd7020ff06b276 /usr.bin/mandoc/cgi.c
parentyet another last_error (diff)
downloadwireguard-openbsd-1432e70157419c46e10d6692e380b6813b6aa448.tar.xz
wireguard-openbsd-1432e70157419c46e10d6692e380b6813b6aa448.zip
in man.cgi(8), disable -O toc by default; requested by deraadt@
Diffstat (limited to 'usr.bin/mandoc/cgi.c')
-rw-r--r--usr.bin/mandoc/cgi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c
index c0d98a8eeef..257d5ad659c 100644
--- a/usr.bin/mandoc/cgi.c
+++ b/usr.bin/mandoc/cgi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgi.c,v 1.104 2019/03/06 12:32:10 schwarze Exp $ */
+/* $OpenBSD: cgi.c,v 1.105 2019/07/10 12:48:08 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2016, 2017, 2018 Ingo Schwarze <schwarze@usta.de>
@@ -865,7 +865,6 @@ resp_format(const struct req *req, const char *file)
memset(&conf, 0, sizeof(conf));
conf.fragment = 1;
conf.style = mandoc_strdup(CSS_DIR "/mandoc.css");
- conf.toc = 1;
usepath = strcmp(req->q.manpath, req->p[0]);
mandoc_asprintf(&conf.man, "/%s%s%s%s%%N.%%S",
scriptname, *scriptname == '\0' ? "" : "/",