From eb95a35edc641e222a195043221c3893359af303 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 27 Aug 2019 08:09:28 -0600 Subject: [PATCH] Add conditional for sesh path in sudo.conf manual. --- MANIFEST | 1 + doc/sudo.conf.man.in.sed | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 doc/sudo.conf.man.in.sed diff --git a/MANIFEST b/MANIFEST index ba9a0036d..e9b8ff2dd 100644 --- a/MANIFEST +++ b/MANIFEST @@ -29,6 +29,7 @@ doc/schema.OpenLDAP doc/schema.iPlanet doc/schema.olcSudo doc/sudo.conf.man.in +doc/sudo.conf.man.in.sed doc/sudo.conf.mdoc.in doc/sudo.man.in doc/sudo.man.in.sed diff --git a/doc/sudo.conf.man.in.sed b/doc/sudo.conf.man.in.sed new file mode 100644 index 000000000..2534bc893 --- /dev/null +++ b/doc/sudo.conf.man.in.sed @@ -0,0 +1,15 @@ +s/^\(.TH .*\)/.nr SL @SEMAN@\ +\1/ + +/^\.TP 10n$/ { + N + /^.TP 10n\nsesh$/ { + i\ +.if \\n(SL \\{\\ + } +} + +/^\\fI@sesh_file@\\fR\.$/ { + a\ +.\\} +} -- 2.49.0