Skip to content

Commit 4a5ca89

Browse files
alejandro-colomarhallyn
authored andcommitted
man/passwd.5.xml: CAVEATS: Add section
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>
1 parent d71f3c3 commit 4a5ca89

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

man/passwd.5.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,20 @@
163163
</variablelist>
164164
</refsect1>
165165

166+
<refsect1 id='caveats'>
167+
<title>CAVEATS</title>
168+
<para>
169+
Unprivileged users may write
170+
arbitrary non-ASCII characters
171+
in the GECOS field,
172+
notably including C1 control characters.
173+
When reading this file,
174+
use the C locale.
175+
Otherwise,
176+
the contents may look different than they are.
177+
</para>
178+
</refsect1>
179+
166180
<refsect1 id='see_also'>
167181
<title>SEE ALSO</title>
168182
<para>

0 commit comments

Comments
 (0)