]> git.ipfire.org Git - thirdparty/systemd.git/commit
psi-util: fix error handling
authorLennart Poettering <lennart@poettering.net>
Mon, 27 Feb 2023 18:02:41 +0000 (19:02 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 28 Feb 2023 12:16:59 +0000 (12:16 +0000)
commit90ec8ebe33ec72ed6d9f451de9443d67dd351d72
tree0e0713f48ee5b1845ad83b2d6fdb017e9f403e11
parent9897f5ddeae5ad4eafae15c8dd63056622458be5
psi-util: fix error handling

We checked ERRNO_IS_NOT_SUPPORTED on a possible positive non-error code,
which isn't right.

Fix that. Also add caching, since we are about to call this more often.
src/basic/psi-util.c