man/: ENV_HZ is only used without PAM

Contrary to the comment in ENV_HZ.xml, ENV_HZ is not even used in
sulogin (anymore) if PAM support is enabled.

Skip paragraphs of sulogin if PAM support is enabled, since they would
be empty now.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
This commit is contained in:
Tobias Stoeckmann
2023-12-20 12:27:24 +01:00
committed by Serge Hallyn
parent 0ee79295f6
commit 97ddb0d80c
5 changed files with 6 additions and 11 deletions

View File

@@ -277,7 +277,7 @@
&CONSOLE;
&CONSOLE_GROUPS;
&DEFAULT_HOME;
<phrase condition="no_pam">&ENV_HZ;</phrase>
&ENV_HZ;
<phrase>&ENV_PATH;</phrase>
<phrase>&ENV_SUPATH;</phrase>
&ENV_TZ;

View File

@@ -449,12 +449,12 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry condition="no_pam">
<term>sulogin</term>
<listitem>
<para>
ENV_HZ
<phrase condition="no_pam">ENV_TZ</phrase>
ENV_TZ
</para>
</listitem>
</varlistentry>

View File

@@ -4,8 +4,7 @@
SPDX-FileCopyrightText: 2007 - 2008, Nicolas François
SPDX-License-Identifier: BSD-3-Clause
-->
<varlistentry>
<!-- XXX: When compiled with PAM support, only sulogin uses ENV_HZ -->
<varlistentry condition="no_pam">
<term><option>ENV_HZ</option> (string)</term>
<listitem>
<para>
@@ -14,10 +13,6 @@
<replaceable>HZ=</replaceable>. A common value on Linux is
<replaceable>HZ=100</replaceable>.
</para>
<para condition="pam">
The <envar>HZ</envar> environment variable is only set when the user
(the superuser) logs in with <command>sulogin</command>.
</para>
<!-- TODO: it can in fact be used to set any other variable-->
</listitem>
</varlistentry>

View File

@@ -321,7 +321,7 @@
&CONSOLE;
&CONSOLE_GROUPS;
&DEFAULT_HOME;
<phrase condition="no_pam">&ENV_HZ;</phrase>
&ENV_HZ;
&ENVIRON_FILE;
&ENV_PATH;
&ENV_SUPATH;

View File

@@ -106,7 +106,7 @@
</para>
</refsect1>
<refsect1 id='configuration'>
<refsect1 condition="no_pam" id='configuration'>
<title>CONFIGURATION</title>
<para>
The following configuration variables in