Add conditional for sesh path in sudo.conf manual.

This commit is contained in:
Todd C. Miller
2019-07-03 09:06:45 -06:00
parent 6e497be935
commit cd258e1d39
3 changed files with 13 additions and 7 deletions

View File

@@ -160,7 +160,7 @@ $(srcdir)/sudo.conf.man.in: $(srcdir)/sudo.conf.mdoc.in
echo "Generating $@"; \ echo "Generating $@"; \
mansectsu=`echo @MANSECTSU@|$(TR) A-Z a-z`; \ mansectsu=`echo @MANSECTSU@|$(TR) A-Z a-z`; \
mansectform=`echo @MANSECTFORM@|$(TR) A-Z a-z`; \ mansectform=`echo @MANSECTFORM@|$(TR) A-Z a-z`; \
$(SED) -e "s/$$mansectsu/8/g" -e "s/$$mansectform/5/g" $(srcdir)/sudo.conf.mdoc.in | $(MANDOC) -Tman | $(SED) -e 's/^\(\.TH "SUDO.CONF" \)"5"\(.*\)/\1"'$$mansectform'"\2/' -e "s/(5)/($$mansectform)/g" -e "s/(8)/($$mansectsu)/g" > $@; \ $(SED) -e 's/^\(\.nr [A-Z][A-Z]\) .[A-Z][A-Z]MAN./\1 1/' -e "s/$$mansectsu/8/g" -e "s/$$mansectform/5/g" $(srcdir)/sudo.conf.mdoc.in | $(MANDOC) -Tman | $(SED) -e 's/^\(\.TH "SUDO.CONF" \)"5"\(.*\)/\1"'$$mansectform'"\2/' -e "s/(5)/($$mansectform)/g" -e "s/(8)/($$mansectsu)/g" -f $(srcdir)/sudo.conf.man.in.sed > $@; \
fi fi
$(mansrcdir)/sudo.conf.man: $(top_builddir)/config.status $(srcdir)/sudo.conf.man.in fixman.sed $(mansrcdir)/sudo.conf.man: $(top_builddir)/config.status $(srcdir)/sudo.conf.man.in fixman.sed

View File

@@ -16,7 +16,8 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\" .\"
.TH "SUDO.CONF" "@mansectform@" "June 20, 2019" "Sudo @PACKAGE_VERSION@" "File Formats Manual" .nr SL @SEMAN@
.TH "SUDO.CONF" "@mansectform@" "July 3, 2019" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
.nh .nh
.if n .ad l .if n .ad l
.SH "NAME" .SH "NAME"
@@ -251,7 +252,7 @@ If terminal devices may be located in a sub-directory of
\fI/dev\fR, \fI/dev\fR,
that path must be explicitly listed in that path must be explicitly listed in
\fIdevsearch\fR. \fIdevsearch\fR.
The default value is: The default value is
\fR/dev/pts:/dev/vt:/dev/term:/dev/zcons:/dev/pty:/dev\fR \fR/dev/pts:/dev/vt:/dev/term:/dev/zcons:/dev/pty:/dev\fR
.sp .sp
This option is ignored on systems that support either the This option is ignored on systems that support either the
@@ -287,7 +288,7 @@ This is used to implement the
functionality on systems that support functionality on systems that support
\fRLD_PRELOAD\fR \fRLD_PRELOAD\fR
or its equivalent. or its equivalent.
The default value is: The default value is
\fI@noexec_file@\fR. \fI@noexec_file@\fR.
.TP 10n .TP 10n
plugin_dir plugin_dir
@@ -295,6 +296,7 @@ The default directory to use when searching for plugins
that are specified without a fully qualified path name. that are specified without a fully qualified path name.
The default value is The default value is
\fI@PLUGINDIR@\fR. \fI@PLUGINDIR@\fR.
.if \n(SL \{\
.TP 10n .TP 10n
sesh sesh
The fully-qualified path to the The fully-qualified path to the
@@ -305,6 +307,7 @@ This setting is only used when
is built with SELinux support. is built with SELinux support.
The default value is The default value is
\fI@sesh_file@\fR. \fI@sesh_file@\fR.
.\}
.SS "Other settings" .SS "Other settings"
The The
\fBsudo.conf\fR \fBsudo.conf\fR

View File

@@ -15,7 +15,8 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\" .\"
.Dd June 20, 2019 .nr SL @SEMAN@
.Dd July 3, 2019
.Dt SUDO.CONF @mansectform@ .Dt SUDO.CONF @mansectform@
.Os Sudo @PACKAGE_VERSION@ .Os Sudo @PACKAGE_VERSION@
.Sh NAME .Sh NAME
@@ -228,7 +229,7 @@ If terminal devices may be located in a sub-directory of
.Pa /dev , .Pa /dev ,
that path must be explicitly listed in that path must be explicitly listed in
.Em devsearch . .Em devsearch .
The default value is: The default value is
.Li /dev/pts:/dev/vt:/dev/term:/dev/zcons:/dev/pty:/dev .Li /dev/pts:/dev/vt:/dev/term:/dev/zcons:/dev/pty:/dev
.Pp .Pp
This option is ignored on systems that support either the This option is ignored on systems that support either the
@@ -263,13 +264,14 @@ This is used to implement the
functionality on systems that support functionality on systems that support
.Ev LD_PRELOAD .Ev LD_PRELOAD
or its equivalent. or its equivalent.
The default value is: The default value is
.Pa @noexec_file@ . .Pa @noexec_file@ .
.It plugin_dir .It plugin_dir
The default directory to use when searching for plugins The default directory to use when searching for plugins
that are specified without a fully qualified path name. that are specified without a fully qualified path name.
The default value is The default value is
.Pa @PLUGINDIR@ . .Pa @PLUGINDIR@ .
.if \n(SL \{\
.It sesh .It sesh
The fully-qualified path to the The fully-qualified path to the
.Nm sesh .Nm sesh
@@ -279,6 +281,7 @@ This setting is only used when
is built with SELinux support. is built with SELinux support.
The default value is The default value is
.Pa @sesh_file@ . .Pa @sesh_file@ .
.\}
.El .El
.Ss Other settings .Ss Other settings
The The