]> git.ipfire.org Git - thirdparty/shadow.git/commit
vipw: Set correct pattern for fmkomstemp
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 14 Jan 2026 21:58:51 +0000 (22:58 +0100)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Wed, 14 Jan 2026 22:41:40 +0000 (23:41 +0100)
commit65668fe093d3b7284aef52a2d883e9e033a20faa
treea8ca7d4dfb0b83e28573330f3365ff0749b3d7ba
parentf4777ac5421b13e63c5fe4b67e681ab91fa3cd29
vipw: Set correct pattern for fmkomstemp

The fmkomstemp call requires a suffix of XXXXXX for correct operation.
Do so in TCB case as well.

Note: If something fails and the file resides in this directory, it
could be interpreted as a username. Use the ',' character as an illegal
character to prevent shadow tools from erroneously accessing this file
and assuming that the user actually exists.

Fixes: a5b3d56e2902 (2026-01-09; "vipw: Use fmkomstemp for temporary file")
Reported-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
src/vipw.c