]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
man/passwd.5.xml: CAVEATS: Add section
authorAlejandro Colomar <alx@kernel.org>
Tue, 31 Mar 2026 12:50:00 +0000 (14:50 +0200)
committerSerge Hallyn <serge@hallyn.com>
Wed, 1 Apr 2026 14:27:30 +0000 (09:27 -0500)
Document that when reading passwd(5), the C locale should be used.

Cc: Iker Pedrosa <ipedrosa@redhat.com>
Cc: Mantas Mikulėnas <grawity@gmail.com>
Cc: KhaelK-Praetorian <khael.kugler@praetorian.com>
Cc: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/passwd.5.xml

index c528e6977e8657ba301904d42e126f0f8d654c94..37b13622237306dcc73099838fc1ea174c0fadce 100644 (file)
     </variablelist>
   </refsect1>
 
+  <refsect1 id='caveats'>
+    <title>CAVEATS</title>
+    <para>
+      Unprivileged users may write
+      arbitrary non-ASCII characters
+      in the GECOS field,
+      notably including C1 control characters.
+      When reading this file,
+      use the C locale.
+      Otherwise,
+      the contents may look different than they are.
+    </para>
+  </refsect1>
+
   <refsect1 id='see_also'>
     <title>SEE ALSO</title>
     <para>