exec-credential: Skip duplicate credentials in load_credential_glob()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 31 Jul 2024 13:02:07 +0000 (15:02 +0200)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 13:04:41 +0000 (14:04 +0100)
commit091c4820c4556e7a27f420fdf1a9758c38d97b91
treeffc5cfd865b871c32f349bfeb8a0b26ab39096a0
parentee85ef4ffa9367ff5122b5955039009080659ce0
exec-credential: Skip duplicate credentials in load_credential_glob()

We document that when multiple credentials of the same name are found,
we use the first one found so let's actually implement that behavior.

(cherry picked from commit 3de13e6148731ae9c36885afd78b1421e6f16305)
src/core/exec-credential.c
test/units/TEST-54-CREDS.sh