summaryrefslogtreecommitdiff
path: root/src/test/test-pretty-print.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-04-25 17:58:34 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-04-25 18:08:15 +0200
commit55ace8e5c58441d1a2c64b297a38b232ef0c0e28 (patch)
treef1947154f32a1afc8216d36c4171de70cc66cad5 /src/test/test-pretty-print.c
parent4a75704b166de533cedf8f9fab16ffae77bf2093 (diff)
downloadsystemd-55ace8e5c58441d1a2c64b297a38b232ef0c0e28.tar.gz
shared/creds-util: return 0 for missing creds in read_credential_strings_many
Realistically, the only thing that the caller can do is ignore failures related to missing credentials. If the caller requires some credentials to be present, they should just check which output variables are not NULL. One of the callers was already doing that, and the other wanted to, but missed -ENOENT. By suppressing -ENOENT and -ENXIO, both callers are simplified. Fixes a warning at boot: systemd-vconsole-setup[221]: Failed to import credentials, ignoring: No such file or directory
Diffstat (limited to 'src/test/test-pretty-print.c')
0 files changed, 0 insertions, 0 deletions