]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
man/chsh: deduplicate shells text
authorGeorg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Mon, 25 Aug 2025 18:59:55 +0000 (20:59 +0200)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Mon, 1 Sep 2025 12:41:19 +0000 (14:41 +0200)
Restructure the paragraphs to avoid duplication of text inside multiple
conditions, making maintenance easier and avoiding accidental
duplication in the rendered output.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
man/chsh.1.xml

index 5ed200da19b6ec9b1aab6bdc3b8f64d55e1987c9..5379c0ae69f6e2fb0d8082ed8414e61b4b1b71f8 100644 (file)
 
   <refsect1 id='note'>
     <title>NOTE</title>
-    <para condition="without_vendordir">
+    <para>
       The only restriction placed on the login shell is that the command
-      name must be listed in <filename>/etc/shells</filename>, unless the
-      invoker is the superuser, and then any value may be added. An
-      account with a restricted login shell may not change her login shell.
+      name must be listed in <filename>/etc/shells</filename>.
     </para>
     <para condition="with_vendordir">
-      The only restriction placed on the login shell is that the command
-      name must be listed in <filename>/etc/shells</filename>.
       If this file does not exist, the definitions are taken from the files
       <filename>%vendordir%/shells</filename>,
       <filename>%vendordir%/shells.d/*</filename> and
       <filename>/etc/shells.d/*</filename> in that order.
       If <filename>/etc/shells.d/@filename@</filename> exists, then
       <filename>%vendordir%/shells.d/@filename@</filename> will not be used.
+    </para>
+    <para>
       If the invoker is the superuser any value may be added regardless what is
       defined in the configuration files.
       An account with a restricted login shell may not change her login shell.
-    </para>
-    <para>
       For this reason, placing <filename>/bin/rsh</filename> in
       <filename>/etc/shells</filename> is discouraged since accidentally
       changing to a restricted shell would prevent the user from ever