]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/agetpass.c: Pass "" instead of NULL as an ignored prompt
authorAlejandro Colomar <alx@kernel.org>
Sat, 9 Aug 2025 15:53:26 +0000 (17:53 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sat, 9 Aug 2025 22:13:31 +0000 (17:13 -0500)
commit3d5f1e88d5f0c4ed788c9e36207bfd65768bdee8
tree136cf9c5e9254e5cb0396350c696e22d106f7367
parent2ff16902d125fa81b52579d488babcc0e6ffe5d0
lib/agetpass.c: Pass "" instead of NULL as an ignored prompt

This is safer, since in general, readpassphrase(3) does not accept
a null pointer as input.

This was discovered thanks to Chris Bazley's _Optional qualifier, which
I'm testing at the moment.

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