]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/chfn.c: Write an empty string if there's nothing in the GECOS field
authorAlejandro Colomar <alx@kernel.org>
Fri, 18 Jul 2025 22:18:30 +0000 (00:18 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sat, 9 Aug 2025 23:00:36 +0000 (18:00 -0500)
commit9c61f5f0e430426214dbf9214b415d684330d8e2
treec7553a75fadae28d10d71c7cd898a5bbaa2ac059
parent874c81bde056bde658d08b882d3e99c06ef5d277
src/chfn.c: Write an empty string if there's nothing in the GECOS field

Otherwise, the buffer would contain garbage.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/chfn.c