machine-credential: tweak --load-credential= use a bit
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Nov 2023 11:02:07 +0000 (12:02 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Nov 2023 14:17:18 +0000 (15:17 +0100)
commit2105f79ed33b08b054f3d5e50445ea5e7e75a2e3
tree9c6bc87df45183d3eb5b443a29ef56d70731d8c4
parent1311946233c72ce6e9d555a6b365c5b2e5268585
machine-credential: tweak --load-credential= use a bit

Let's try to recognize paths (i.e. those with a "/") as source for
credentials to load, and then read them from the file system. Also, only read
credentials from an inbound credentials directory if the source
qualifies as valid credential name.

Otherwise print a nice error.
src/shared/machine-credential.c