]> git.ipfire.org Git - thirdparty/systemd.git/commit
creds-util: make read_credential_strings_many behave the same as comment
authorMike Yuan <me@yhndnzj.com>
Tue, 9 Jan 2024 07:00:53 +0000 (15:00 +0800)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Jan 2024 08:54:39 +0000 (09:54 +0100)
commit95bcaa4e81dc148692e26764a6a5d3b53b155fe1
tree5fef8c81c649ac519d97616f4f652759d94734a8
parentff85480458c8074dc8dc5657edee10964374ee80
creds-util: make read_credential_strings_many behave the same as comment

The comment states "If the specified buffers are already non-NULL
frees them if a credential is found".

Also return 1 if all credentials are found.
src/shared/creds-util.c
src/test/test-creds.c